I want to use app = (MyApplication)getApplication(); in BroadcastReceiver
i am using thi link: http://www.devahead.com/blog/tag/application/
but getApplication not exits in BroadcastReceiver, How can i use it?
I need it becouse i want to share data between two BroadcastReceiver
Your BroadcastReceiver has an onReceive(Context ctx, Intent intent) method which is called to receive a message... you're being hand-delivered a context.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With