|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPhoneStateListener
es.cesar.quitesleep.listeners.MyPhoneStateListener
public class MyPhoneStateListener
Constructor Summary | |
---|---|
MyPhoneStateListener(Context context)
Constructor with the context parameter for use if the application not run and is the BOOT_COMPLETED BroadcastReceiver that is launch this. |
Method Summary | |
---|---|
void |
onCallStateChanged(int state,
java.lang.String incomingNumber)
Function that receive the state id for the phone state type (idle, offhook and ringing), and the incoming number that is doing the call. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MyPhoneStateListener(Context context)
context
- ITelephony
- Method Detail |
---|
public void onCallStateChanged(int state, java.lang.String incomingNumber)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |