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 7736303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:42:21+00:00 2026-06-01T07:42:21+00:00

And again I’ve got a question, which is again Android related. It’s just for

  • 0

And again I’ve got a question, which is again Android related. It’s just for me to get more insight on the workings of sending broadcast.

What I would like to know is:

1. Why would one use the broadcast receiver over activities for result?
I thought the broadcast receiver would be more useful to handle actual device messages, than just for passing around intents in an app.

2. What kind of security issues could a developer encounter?
Am I right if I assume, that anyone that knows my package name (maybe through reverse engineering), could basically catch the sent intents and see the information passed with it?

3. What good is the LocalBroadcastManager if you want to pass objects to other activities?

I read that this might be better if you don’t want the sent intents to leak outside the app. Does this also means that even if someone has the package name they still not can receive the broadcast outside the app?

If you think my questions are not complete or are based on flawed assumptions, please let me know, so I can learn from it. 🙂

Many thanks to all that can help.

Cheers,

Do

  • 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-01T07:42:22+00:00Added an answer on June 1, 2026 at 7:42 am

    1) Broadcast Receivers are a mechanism to receive messages (intents) globally without having any UI. They are good to pass information between different components like Service, Activity or even BroadcastReceiver itself. They can be defined in manifest to listen specific action and do stuff (for e.g launching service/activity) even if your app is not running. However, in activityForResult, your app (activity) must be running in order to receive results, which may not be suitable all the times.

    2) Yes, if your action string is known to other apps, then your broadcasts are exposed to any receiver which listens to those specific actions. To avoid this, use LocalBroadcastManager.

    3) Using LocalBroadcastManager is the best way to increase privacy by ensuring that your broadcast will only be broadcasted and listened within your application’s context. Other applications cant listen to such broadcasts as they are having their own context and unaware of your app’s context.

    As per google docs for LocalBroadcastManager:

    • You know that the data you are broadcasting won’t leave your app, so don’t need to worry about leaking private data.
    • It is not possible for other applications to send these broadcasts to your app, so you don’t need to worry about having security holes
      they can exploit.
    • It is more efficient than sending a global broadcast through the system

    Final words: If you need to broadcast messages within your app and don’t want to send them globally, then LocalBroadcastManager is the best choice. Otherwise go with the ordinary way

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

Sidebar

Related Questions

Once again a very beginner-ish question, but here I go: I would like to
Me again... I have an XML File that contains different categories which I would
Again I am back with a question related to the same wsdl, this time
Again I would like to get your opinion about a design issue. I have
Hello again community, I posted a question just over an hour ago asking for
again i have got a problem with socket programming in Android. My Problem is
Again I have a question regarding this plugin: http://t.wits.sg/2008/06/20/jquery-progress-bar-11/ What I want to achieve
Again a SED question from me :) So, same as last time, I'm wrestling
Hello again ladies and gents! OK, following on from my other question on ASP.NET
Yet again, my teacher was unable to answer my question. I knew who may

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.