android.location
Class Location
java.lang.Object
android.location.Location
- All Implemented Interfaces:
- Parcelable
public class Location
- extends Object
- implements Parcelable
FORMAT_DEGREES
public static final int FORMAT_DEGREES
- See Also:
- Constant Field Values
FORMAT_MINUTES
public static final int FORMAT_MINUTES
- See Also:
- Constant Field Values
FORMAT_SECONDS
public static final int FORMAT_SECONDS
- See Also:
- Constant Field Values
CREATOR
public static final Parcelable.Creator<Location> CREATOR
Location
public Location(String provider)
Location
public Location(Location l)
dump
public void dump(Printer pw,
String prefix)
set
public void set(Location l)
reset
public void reset()
convert
public static String convert(double coordinate,
int outputType)
convert
public static double convert(String coordinate)
distanceBetween
public static void distanceBetween(double startLatitude,
double startLongitude,
double endLatitude,
double endLongitude,
float[] results)
distanceTo
public float distanceTo(Location dest)
bearingTo
public float bearingTo(Location dest)
getProvider
public String getProvider()
setProvider
public void setProvider(String provider)
getTime
public long getTime()
setTime
public void setTime(long time)
getLatitude
public double getLatitude()
setLatitude
public void setLatitude(double latitude)
getLongitude
public double getLongitude()
setLongitude
public void setLongitude(double longitude)
hasAltitude
public boolean hasAltitude()
getAltitude
public double getAltitude()
setAltitude
public void setAltitude(double altitude)
removeAltitude
public void removeAltitude()
hasSpeed
public boolean hasSpeed()
getSpeed
public float getSpeed()
setSpeed
public void setSpeed(float speed)
removeSpeed
public void removeSpeed()
hasBearing
public boolean hasBearing()
getBearing
public float getBearing()
setBearing
public void setBearing(float bearing)
removeBearing
public void removeBearing()
hasAccuracy
public boolean hasAccuracy()
getAccuracy
public float getAccuracy()
setAccuracy
public void setAccuracy(float accuracy)
removeAccuracy
public void removeAccuracy()
getExtras
public Bundle getExtras()
setExtras
public void setExtras(Bundle extras)
toString
public String toString()
- Overrides:
toString
in class Object
describeContents
public int describeContents()
- Specified by:
describeContents
in interface Parcelable
writeToParcel
public void writeToParcel(Parcel parcel,
int flags)
- Specified by:
writeToParcel
in interface Parcelable
Copyright © 2008-2012. All Rights Reserved.