Android Onreceive Not Called
I'm trying to follow this example: What is the correct way for sharing data among AppWidgetProvider and RemoteViewsService.RemoteViewsFactory As such, I have a RemoteViewsFactory t
Solution 1:
For your own Intent broadcast
to work, you have to register
your BroadcastReceiver
programmatically. So register your receiver as
LocalBroadcastManager.getInstance(this).registerReceiver(YourWidgetReceiver, newIntentFilter("your_intent_action"));
And then send your broadcast as
Intentintent=newIntent("your_intent_action");
LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(intent)
;
Hope this helps.
Post a Comment for "Android Onreceive Not Called"