I've researched the package android.app and few questions have been appeared.
1)When and where do you use android.app.Instrumentation? May you give an exact example?
2)I've read about IntentService: "IntentService is a base class for Services that handle asynchronous requests (expressed as Intents) on demand". But, documentation about BroadcastReceiver claims almost the same: "Base class for code that will receive intents".
When is it better to use BroadcastReceiver and when - IntentService?
1)When and where do you use android.app.Instrumentation? May you give an exact example?
2)I've read about IntentService: "IntentService is a base class for Services that handle asynchronous requests (expressed as Intents) on demand". But, documentation about BroadcastReceiver claims almost the same: "Base class for code that will receive intents".
When is it better to use BroadcastReceiver and when - IntentService?