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
BroadcastReceiverhas anonReceive(Context ctx, Intent intent)method which is called to receive a message… you’re being hand-delivered a context.