public class LocationCtrl
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUNDLE_ERROR_CODE |
static java.lang.String |
BUNDLE_ERROR_MSG |
static int |
RESULT_CODE_ERROR |
static int |
RESULT_CODE_SUCCESS |
| Constructor and Description |
|---|
LocationCtrl(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
android.os.Bundle |
addGpsStatusListener()
Request Location Update
|
android.os.Bundle |
getAccuracy()
Get Accuracy
|
android.os.Bundle |
getAltitude()
Get Altitude
|
android.os.Bundle |
getGpsOpenStatus() |
android.os.Bundle |
getLatitude()
Get Latitude
|
android.os.Bundle |
getLongitude()
Get Longitude
|
android.os.Bundle |
getProvider()
Get Provider
|
android.os.Bundle |
getSpeed()
Get Speed
|
android.os.Bundle |
getUTCTime()
Get UTCTime(pattern:"yyyy-MM-dd'T'HH:mm:ssZ")
|
android.os.Bundle |
setLocationMode(int mode)
Set Location Mode
|
public static final java.lang.String BUNDLE_ERROR_CODE
public static final java.lang.String BUNDLE_ERROR_MSG
public static final int RESULT_CODE_ERROR
public static final int RESULT_CODE_SUCCESS
public android.os.Bundle setLocationMode(int mode)
mode - (int)
0:"off",
1:"device only",
2:"battery saving",
3:"high accuracy",public android.os.Bundle getGpsOpenStatus()
public android.os.Bundle getAltitude()
public android.os.Bundle getAccuracy()
public android.os.Bundle getLatitude()
public android.os.Bundle getLongitude()
public android.os.Bundle getProvider()
public android.os.Bundle getSpeed()
public android.os.Bundle getUTCTime()
public android.os.Bundle addGpsStatusListener()