开发者

Which class is called first Activity ,BroadcastReceiver or Service?

I have 3 classes in m开发者_StackOverflow社区y App.

  1. Class A extends Activity
  2. class B extends BroadcastReceiver
  3. Class C extends Service.

When I run the App. which one of this will be called first, I know android doesn't have a entry point. I am blocking the incoming call in class B , and I am calling the service from activity > this service will call BroadcastReceiver > here is where I block the calls. When I run the code from eclipse to Droid, it is constantly blocking the call, even before I start the App. does any one know the reason. Thank you very much .


Service,

Another application component can start a service and it will continue to run in the background even if the user switches to another application.

So that is how you broadcast receiver is called.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜