Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public abstract class

CellLocation

extends Object
java.lang.Object
   ↳ android.telephony.CellLocation
Known Direct Subclasses

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CellLocation ()

Added in API level 1

Public Methods

public static CellLocation getEmpty ()

Added in API level 1

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

public static void requestLocationUpdate ()

Added in API level 1

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