1. Are you ready for the Galaxy S20? Here is everything we know so far!

When and where is it better to use Instrumentation, IntentService and BroadcastReceiver?

Discussion in 'Android Development' started by QuickNick, Sep 18, 2011.

  1. QuickNick

    QuickNick Newbie
    Thread Starter

    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?
     

    Advertisement

Loading...

Share This Page

Loading...