PhoneStateListener deprecated

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

Fields

public static final int LISTEN_NONE = 0 source
public static final int LISTEN_SERVICE_STATE = 1 source
public static final int LISTEN_SIGNAL_STRENGTH = 2 source
public static final int LISTEN_CALL_STATE = 0x20 source
public static final int LISTEN_DATA_CONNECTION_STATE = 0x40 source
public static final int LISTEN_DATA_ACTIVITY = 0x80 source
public static final int LISTEN_SIGNAL_STRENGTHS = 0x100 source
public static final int LISTEN_CELL_INFO = 0x400 source

Constructors

public PhoneStateListener() empty body source
public PhoneStateListener(java.util.concurrent.Executor executor) empty body source

Methods

public void onCallStateChanged(int state, String phoneNumber) empty body source
public void onSignalStrengthsChanged(SignalStrength signalStrength) empty body source
public void onDataConnectionStateChanged(int state) empty body source
public void onDataActivity(int direction) empty body source
public void onServiceStateChanged(Object serviceState) empty body source

Made 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.