javax.microedition.location
Class LocationProviderManager

java.lang.Object
  extended byjavax.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

Constructor Summary
LocationProviderManager()
           
 
Method Summary
static Location getLatestKnownLocation()
          Returns the latest known location that the implementation has.
static LocationProvider getLocationProvider()
          This factory method is used to get an actual LocationProvider implementation based on the defined criteria.
static void register(LocationProvider provider)
           
static void unregister(LocationProvider provider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationProviderManager

public LocationProviderManager()
Method Detail

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