Which class is called first Activity ,BroadcastReceiver or Service?
I have 3 classes in m开发者_StackOverflow社区y App.
- Class A extends Activity
- class B extends BroadcastReceiver
- 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.
精彩评论