There are two ways to wait for a phone call. One is to have a service to monitor PhoneStateChanged event of PhoneEvents and other is to have a Broadcast Receiver service for android.intent.action.PHONE_STATE.
The benefit of Broadcast Receiver is that you don't need to worry about keeping your...
I have reworked my old code sample basing on StackOverflow example code:
Depends on: Phone lib
DO not forget at an activity to request PERMISSION_READ_PHONE_STATE.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.