Methods Summary |
---|
public abstract void | fillInNotifierBundle(android.os.Bundle bundle)
|
public static android.telephony.CellLocation | getEmpty()Return a new CellLocation object representing an unknown location.
return new GsmCellLocation();
|
public static android.telephony.CellLocation | newFromBundle(android.os.Bundle bundle)Create a new CellLocation from a intent notifier Bundle
This method is used by PhoneStateIntentReceiver and maybe by
external applications.
return new GsmCellLocation(bundle);
|
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 {@link
PhoneStateListener#LISTEN_CELL_LOCATION}.
try {
ITelephony phone = ITelephony.Stub.asInterface(ServiceManager.getService("phone"));
if (phone != null) {
phone.updateServiceLocation();
}
} catch (RemoteException ex) {
// ignore it
}
|