javax.microedition.location
Class LocationProviderManager
java.lang.Object
javax.microedition.location.LocationProviderManager
- public class LocationProviderManager
- extends Object
This is the starting point for applications using this API and represents a
source of the location information. Applications obtain
LocationProvider instances (classes implementing the actual functionality by
extending this abstract class) by calling the factory method.
- Author:
- donsez
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocationProviderManager
public LocationProviderManager()
getLocationProvider
public static LocationProvider getLocationProvider()
- This factory method is used to get an actual LocationProvider
implementation based on the defined criteria.
- Returns:
- The LocationProvider value
register
public static void register(LocationProvider provider)
unregister
public static void unregister(LocationProvider provider)
getLatestKnownLocation
public static Location getLatestKnownLocation()
- Returns the latest known location that the implementation has.
- Returns:
- The latestKnownLocation value