Removed Methods
|
Location getCurrentLocation(String )
|
Returns a new location fix from the given provider. |
int getProviderStatus(String )
|
Returns a information on the status of the given provider. |
List<LocationProvider> getProviders()
|
Returns a list of location providers. |
List<LocationProvider> getProviders(Criteria )
|
Returns a list of LocationProviders that satisfy the given
criteria, or null if none do. |
void requestUpdates(Criteria, long, float, Intent)
|
Registers the current activity to be notified periodically by a
provider meeting the given criteria for accuracy, power usage,
etc. |
void requestUpdates(LocationProvider, long, float, Intent)
|
Registers the current activity to be notified periodically by
the named provider. |
Added Methods
|
void addTestProvider(String, boolean, boolean, boolean, boolean, boolean, boolean, boolean, int, int)
|
Creates a mock location provider and adds it to the set of active providers. |
void clearTestProviderEnabled(String )
|
Removes any mock enabled value associated with the given provider. |
void clearTestProviderLocation(String )
|
Removes any mock location associated with the given provider. |
void clearTestProviderStatus(String )
|
Removes any mock status values associated with the given provider. |
List<String> getAllProviders()
|
Returns a list of the names of all known location providers. |
List<String> getProviders(Criteria, boolean)
|
Returns a list of the names of LocationProviders that satisfy the given
criteria, or null if none do. |
List<String> getProviders(boolean )
|
Returns a list of the names of location providers. |
boolean isProviderEnabled(String )
|
Returns the current enabled/disabled status of the given provider. |
void removeTestProvider(String )
|
Removes the mock location provider with the given name. |
void requestLocationUpdates(String, long, float, LocationListener)
|
Registers the current activity to be notified periodically by
the named provider. |
void requestLocationUpdates(String, long, float, LocationListener, Looper)
|
Registers the current activity to be notified periodically by
the named provider. |
void setTestProviderEnabled(String, boolean)
|
Sets a mock enabled value for the given provider. |
void setTestProviderLocation(String, Location)
|
Sets a mock location for the given provider. |
void setTestProviderStatus(String, int, Bundle, long)
|
Sets mock status values for the given provider. |
Changed Methods
|
void addProximityAlert(double, double, float, long, PendingIntent)
|
Change in signature from (double, double, float, long, Intent ) to (double, double, float, long, PendingIntent ).
|
Sets a proximity alert for the location given by the position
(latitude, longitude) and the given radius. |
String getBestProvider(Criteria, boolean)
|
Change in return type from LocationProvider to String .
Change in signature from Criteria to (Criteria, boolean ).
|
Returns the name of the provider that best meets the given criteria. |
void removeProximityAlert(PendingIntent )
|
Change in signature from Intent to PendingIntent .
|
Removes the proximity alert with the given PendingIntent. |
void removeUpdates(LocationListener )
|
Change in signature from Intent to LocationListener .
|
Removes any current registration for location updates of the current activity
with the given LocationListener. |