Android check has an active phone call

How to check if the current phone call is activated from a non-phone application?

What API do I need to discover?

+8
android phone-call
source share
1 answer

try the following:

public boolean isCallActive(Context context){ AudioManager manager = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE); if(manager.getMode()==AudioManager.MODE_IN_CALL){ return true; } else{ return false; } } 
+20
source share

All Articles