解决方法
Started services are easy to program for simple one way interactions
from an activity to a service,however,they require more complex and
ad hoc programming for extended two-way conversations with their
clients.In contrast,bound services may be a better choice for more
complex two-way interactions between activities and services. For
example,they support two-way conversations.
所以,正如你所说,如果你想与服务交互使用绑定的服务.通过启动的服务(或意向服务),您可以做到这一点,只需要更复杂的编程.
(Douglas Schmidt:https://www.youtube.com/watch?v=cRFw7xaZ_Mg(11’10“)):
这是一个帮助我理解的总结(谢谢道格):
最后,最后一个帮助我的链接也是:
http://www.techotopia.com/index.php/An_Overview_of_Android_Started_and_Bound_Services
已启动的服务由其他应用程序组件(例如活动,甚至是广播接收者)启动,并且可能在后台无限期地运行,直到服务停止,或被Android运行时系统销毁以释放资源.如果启动它的应用程序不再在前台,甚至在最初启动服务的组件被销毁的情况下,服务将继续运行
绑定的服务类似于启动的服务,但是启动的服务通常不会返回结果或允许与启动它的组件进行交互.另一方面,绑定的服务允许启动组件与服务进行交互并从服务接收结果.