Questions tagged [localbroadcastmanager]

143 questions
0
votes
1 answer

Backwards BroadcastReceiver Senders

I have goofed something up here with my Broadcast Receivers and my Sender. perhaps another set of eyes would be useful. I have my lightsensor which is supposed to broadcast changes to the receiving activity. Here is the LightSensor.java public void…
user3052374
0
votes
2 answers

LocalBroadcastManager order of execution

I am trying to understand how BroadcastReceivers work on Android. My question is, will there be a delay between the time I call sendBroadcast on a LocalBroadcastManager to the time it is received in my BroadcastReceiver? Will the call be…
BarbM
  • 11
  • 2
0
votes
1 answer

Navigation Drawer counter is set as a LocalBroadcastReceiver but not updating?

Thank you for taking the time to read my question. I have an application where my app has a navigation drawer along with the icons, title, and counter. I don't have enough reputation to add image sorry. Here's a link with an example. I set the…
0
votes
1 answer

LocalBroadcastManager receiver order

Does LocalBroadcastManager guarantee the order in which registered receivers are called? It would be handy to count on them always being called in the order they were registered. The API documentation doesn't seem to say, but maybe I missed…
0
votes
1 answer

Different broadcastreceiver depending on activity life

Some time ago, I was able to have 2 broadcastreceivers, one declared in my manifest, and the other one, declared in my activity. Like here : What is the best way to handle callback from IntentService But, since I have changed for…
Bibu
  • 1,249
  • 2
  • 17
  • 40
0
votes
1 answer

Android: when Activity receives a broadcast how to detect if sender is the Activity itself?

My Android app uses LocalBroadcastManager and BroadcastReceiver to communicate between activities. How do you have an activity detect when it is receiving an Intent that originated from itself rather than another Activity? In other words, how do…
Steveo
  • 2,238
  • 1
  • 21
  • 34
-1
votes
1 answer

C# UWP api for internal message bus

in a UWP c# application, how do I send a message from one object to another? This without creating specific parameters or methods. I'm thinking of using a message bus, but I did not find anything for UWP C# app. In iOS applications I used this…
-1
votes
1 answer

Managing LocalBroadcastManager when a class is not yet created

I have a basic level at android, and I still have problems understanding the life cycle of apps. So I'm doing this test. Let's say I have an app that has three classes: the MainActivity, class A and class B. Class A receives "external" intents. I've…
1 2 3
9
10