Showing posts with label broadcast. Show all posts
Showing posts with label broadcast. Show all posts

Tuesday, January 17, 2012

ON & OFF Android Broadcastreceiver


Im creating an app in which i do a task when i receive a call (detect RINGING state with a BROADCASTRECEIVER ).My question is that,can I register and unregister (literally;ON and OFF) his broadcastreceiver from an activity having 2 buttons;say one for ON and another for OFF?