api - get access to com.android.internal.telephony.Call -


i need access com.android.internal.telephony.call.

doing so:

// initialize telephony framework phonefactory.makedefaultphones (this);  // default phone phone phone = phonefactory.getdefaultphone ();  callmanager mcm = callmanager.getinstance (); mcm.registerphone (phone);  call call = mcm.getfirstactivebgcall(); 

but not extend initialize framework.

help me initialize call.

i need read state of call like: idle, active, holding, dialing, alerting, incoming, waiting, disconnected, disconnecting.

thanks help!!!

you need make use of phonestatelistener provide facility have application listen different state of phone call. need put <uses-permission android:name="android.permission.read_phone_state"/> in manifest file


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -