FileDocCategorySizeDatePackage
CellLocation.javaAPI DocAndroid 1.5 API2273Wed May 06 22:42:00 BST 2009android.telephony

CellLocation

public abstract class CellLocation extends Object
Abstract class that represents the location of the device. Currently the only subclass is {@link android.telephony.gsm.GsmCellLocation}. {@more}

Fields Summary
Constructors Summary
Methods Summary
public abstract voidfillInNotifierBundle(android.os.Bundle bundle)

hide

public static android.telephony.CellLocationgetEmpty()
Return a new CellLocation object representing an unknown location.

        return new GsmCellLocation();
    
public static android.telephony.CellLocationnewFromBundle(android.os.Bundle bundle)
Create a new CellLocation from a intent notifier Bundle This method is used by PhoneStateIntentReceiver and maybe by external applications.

param
bundle Bundle from intent notifier
return
newly created CellLocation
hide

        return new GsmCellLocation(bundle);
    
public static voidrequestLocationUpdate()
Request an update of the current location. If the location has changed, a broadcast will be sent to everyone registered with {@link PhoneStateListener#LISTEN_CELL_LOCATION}.

        try {
            ITelephony phone = ITelephony.Stub.asInterface(ServiceManager.getService("phone"));
            if (phone != null) {
                phone.updateServiceLocation();
            }
        } catch (RemoteException ex) {
            // ignore it
        }