[英]onStart method is being called in a bound service without any method call
I have been going through the following google tutorial , and just had a few questions: 我一直在阅读以下Google教程 ,并且有几个问题:
i pasted the code and ran it, and i noticed that the onStart() method gets executed. 我粘贴了代码并运行了它,然后我注意到onStart()方法被执行了。 However I do not see any method call for this, how does this method get executed ?
但是我看不到有任何方法调用,该方法如何执行?
can you give an practical example of how a bound service would be ideal ? 您能否举一个实际示例说明绑定服务将如何理想?
Here's a nice explanation of the lifecycle of Android activities : 这是Android活动生命周期的一个很好的解释 :
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.