How to Detect Incoming Calls, in an Android Device

How to detect incoming call phone number in Android when app is killed?

Not exactly an answer, but you can create your custom calling app and then make it default by asking for permission. A demo app can be found on this repository. Look at this app code and you might get it.

Is it possible to detect a Whatsapp voice call ended in Android?

You can also detect if the call is ongoing... because the notification will be posted to the listener every second ( Because the call duration info in notification changes
every second ) until the call ends. Just start a timer process to detect the last time a WhatsApp call notification was detected , and if the time is greater than 3 seconds, you can declare that as an ending of a call and run your code there.



Related Topics



Leave a reply



Submit