dimanche 30 novembre 2014

How to call method of an Activity from onReceive()


There is an Activity A with a button. On pressing of the button it makes a phone call to a number. I have registered a BroadcastReceiver on finishing of this call. After the call has finished Activity A comes to foreground and onReceive() method gets called. Now i want to call a method of Activity A from inside of onReceive() method. How can i do this ? Thanks





Aucun commentaire:

Enregistrer un commentaire