Build 1.0_r1(from source)

android.telephony
Class CellLocation

java.lang.Object
  extended by android.telephony.CellLocation
Direct Known Subclasses:
GsmCellLocation

public abstract class CellLocation
extends Object

Abstract class that represents the location of the device. Currently the only subclass is GsmCellLocation.


Constructor Summary
CellLocation()
           
 
Method Summary
abstract  void fillInNotifierBundle(Bundle bundle)
           
static CellLocation getEmpty()
          Return a new CellLocation object representing an unknown location.
static CellLocation newFromBundle(Bundle bundle)
          Create a new CellLocation from a intent notifier Bundle This method is used by PhoneStateIntentReceiver and maybe by external applications.
static void requestLocationUpdate()
          Request an update of the current location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellLocation

public CellLocation()
Method Detail

requestLocationUpdate

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.


newFromBundle

public static CellLocation newFromBundle(Bundle bundle)
Create a new CellLocation from a intent notifier Bundle This method is used by PhoneStateIntentReceiver and maybe by external applications.

Parameters:
bundle - Bundle from intent notifier
Returns:
newly created CellLocation

fillInNotifierBundle

public abstract void fillInNotifierBundle(Bundle bundle)

getEmpty

public static CellLocation getEmpty()
Return a new CellLocation object representing an unknown location.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature