Added interfaces android.hardware.SensorListener, android.location.LocationListener
.
Added Constructors
|
MyLocationOverlay(Context, MapView)
|
Construct a new MyLocationOverlay. |
Added Methods
|
void disableCompass()
|
Disable updates from the compass sensor. |
void disableMyLocation()
|
Stops location updates. |
boolean dispatchTap()
|
Handle a tap on the "my location" point. |
void drawCompass(Canvas, float)
|
Draw the compass inset. |
void drawMyLocation(Canvas, MapView, Location, GeoPoint, long)
|
Draw the "my location" dot. |
boolean enableCompass()
|
Enable updates from the compass sensor. |
boolean enableMyLocation()
|
Attempts to enable MyLocation, registering for updates from
LocationManager.GPS_PROVIDER first and LocationManager.NETWORK_PROVIDER second. |
Location getLastFix()
|
Returns a Location corresponding to the most-recently-set user location. |
GeoPoint getMyLocation()
|
Returns a GeoPoint corresponding to the most-recently-set user location. |
float getOrientation()
|
Returns the most-recently-set compass bearing. |
boolean isMyLocationEnabled()
|
Checks whether location awareness is enabled (via GPS or network). |
void onLocationChanged(Location )
|
Listener to get location updates from LocationManagerService. |
void onProviderDisabled(String )
|
{@inheritDoc} |
void onProviderEnabled(String )
|
{@inheritDoc} |
void onSensorChanged(int, float[])
|
Called by the SensorManager when the compass value changes. |
void onStatusChanged(String, int)
|
{@inheritDoc} |
void onStatusChanged(String, int, Bundle)
|
{@inheritDoc} |
boolean runOnFirstFix(Runnable )
|
Queues a runnable to be executed as soon as we have a location
fix. |
Changed Methods
|
boolean onTap(GeoPoint, MapView)
|
Change in signature from (DeviceType, Point, PixelCalculator ) to (GeoPoint, MapView ).
Method was inherited from com.google.android.maps.Overlay, but is now defined locally.
|
Checks whether the location of the tap is close enough to the
current location (if it's known). |
boolean draw(Canvas, MapView, boolean, long)
|
Change in return type from void to boolean .
Change in signature from (Canvas, PixelCalculator, boolean ) to (Canvas, MapView, boolean, long ).
|
Draw method. |
Removed Fields
|
Drawable mDot
|
|