Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8782875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:40:49+00:00 2026-06-13T20:40:49+00:00

What is difference between BroadcastReceiver and ResultReceiver in android?

  • 0

What is difference between BroadcastReceiver and ResultReceiver in android?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:40:51+00:00Added an answer on June 13, 2026 at 8:40 pm

    Result Receiver:

    Generic interface for receiving a callback result from someone.
    

    Broadcast Receiver:

    Base class for code that will receive intents sent by sendBroadcast().
    

    EDIT:

    Background: All networking operations/long running operations should take place away from the main thread. Two ways to do this :

    1. Async task – For Simple networking like say retreive an image/ do db
      processing
    2. Service – For Complex long running background process

    If you need to perform work outside your main thread, but only while the user is interacting with your application, then you should probably instead create a new thread and not a service. For example, if you want to play some music, but only while your activity is running, you might create an Async Thread. But if you want the process to continue even after the user exits the app (say a download) then use a service

    Lets say you pick 2. Now

    1. You activity sends a web request to your service

    2. Your service executes that using say DefaultHttpClient

    3. It sends back data to your activity.

      The third step of receiving data here can be done in two ways

    1.) Broadcast receiver: Multiple receivers can receive your data. Used if you want to send data/notifications across applications(say you are also interacting with fb and twitter, multiple receivers for your web broadcast),
    whenever you send broadcast its sent system wide.

    2.) Result receiver: Your application is the only receiver of the data. It is an Interface you implement and pass it to the intentService through putExtra. IntentService will then fetch this object
    and call its receiver.send function to send anything (in bundle) to
    calling activity. Result receiver has
    preference over broadcast receivers if your all communication is
    internal to your application

    EDIT: I should also mention this caution

    Caution: A service runs in the main thread of its hosting process—the
    service does not create its own thread and does not run in a separate
    process (unless you specify otherwise). This means that, if your
    service is going to do any CPU intensive work or blocking operations
    (such as MP3 playback or networking), you should create a new thread
    within the service to do that work. By using a separate thread, you
    will reduce the risk of Application Not Responding (ANR) errors and
    the application’s main thread can remain dedicated to user interaction
    with your activities.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, in android, what is the difference between doing something in broadcastReceiver and calling
Difference between list & arraylist in android. How can i sort out arraylist?
Possible Duplicate: Difference between onCreate() and onStart()? Android Activity Life Cycle - What are
I am new to android. I what to know the difference between Intent and
Difference between start-pointers and interior-pointers and in what situation we should prefer one over
The difference between Chr and Char when used in converting types is that one
What's the difference between CopyIcon and DuplicateIcon ?
JAVA : is there a difference between the two references p && pp? PrintStream
What are the difference between a public class member class data { public: std::list<data>
Can any one explain difference between position and anchor point in cocos-2D with some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.