Class of android.telephony · PhoneStateListener.java · Android's reference
public class PhoneStateListener
A listener of the phone's state: the device has no phone, so no call comes
public static final int LISTEN_NONE = 0 sourcepublic static final int LISTEN_SERVICE_STATE = 1 sourcepublic static final int LISTEN_SIGNAL_STRENGTH = 2 sourcepublic static final int LISTEN_CALL_STATE = 0x20 sourcepublic static final int LISTEN_DATA_CONNECTION_STATE = 0x40 sourcepublic static final int LISTEN_DATA_ACTIVITY = 0x80 sourcepublic static final int LISTEN_SIGNAL_STRENGTHS = 0x100 sourcepublic static final int LISTEN_CELL_INFO = 0x400 sourcepublic PhoneStateListener() empty body sourcepublic PhoneStateListener(java.util.concurrent.Executor executor) empty body sourcepublic void onCallStateChanged(int state, String phoneNumber) empty body sourcepublic void onSignalStrengthsChanged(SignalStrength signalStrength) empty body sourcepublic void onDataConnectionStateChanged(int state) empty body sourcepublic void onDataActivity(int direction) empty body sourcepublic void onServiceStateChanged(Object serviceState) empty body sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.