FANDOM




Implement a Broadcast receiver and listen for;

TelephonyManager.ACTION_PHONE_STATE_CHANGED


You have 10 seconds to run your onReceive method, otherwise it can be killed by the user/OS (which ??)



It is generally better to show messages via Notifications, that to start an Activity, for onReceive broadcash noticiations otherwise focus will be stolen off the phone app

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.