lightbulb_outline Please take our October 2018 developer survey. Start survey
added in API level 1

CellLocation

public abstract class CellLocation
extends Object

java.lang.Object
   ↳ android.telephony.CellLocation


Abstract class that represents the location of the device.

Summary

Public constructors

CellLocation()

Public methods

static CellLocation getEmpty()

Return a new CellLocation object representing an unknown location, or null for unknown/none phone radio types.

static void requestLocationUpdate()

Request an update of the current location.

Inherited methods

Public constructors

CellLocation

added in API level 1
public CellLocation ()

Public methods

getEmpty

added in API level 1
public static CellLocation getEmpty ()

Return a new CellLocation object representing an unknown location, or null for unknown/none phone radio types.

Returns
CellLocation

requestLocationUpdate

added in API level 1
public static void requestLocationUpdate ()

Request an update of the current location. If the location has changed, a broadcast will be sent to everyone registered with PhoneStateListener.LISTEN_CELL_LOCATION.