Q: how to detect the phone state when someone call picked up Here is the details which is am facing when to detect the picked sate .


*

*Reading Phone State :- The problem with this approach is while we have outgoing call there is no such ringing state. When the call is ringing it is offhook state and when the call is picked up there is no change in state and thus we can't identify whether call is picked up or not.

*Using Notification listener. In some phone it worked but in some phone like redmi it didn't work as there is not same change in notification. Your app will be fail in testing.

*Accessibility service:- To access event the app need special permission which can be granted to only system apps or in rooted phone so it can't work as this permission is not granted.

*Maintaining Call Log:- The call logs are updated when the call is done so you wil not get details of ongoing calls.
Even broadcast receiver also not working.Can anyone help me out . Thanks in Advance :)
