diff options
Diffstat (limited to 'location')
-rw-r--r-- | location/java/android/location/ILocationManager.aidl | 3 | ||||
-rw-r--r-- | location/java/android/location/LocationManager.java | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/location/java/android/location/ILocationManager.aidl b/location/java/android/location/ILocationManager.aidl index 2255bf2..3e7437b 100644 --- a/location/java/android/location/ILocationManager.aidl +++ b/location/java/android/location/ILocationManager.aidl @@ -88,4 +88,7 @@ interface ILocationManager // for NI support boolean sendNiResponse(int notifId, int userResponse); + + // add set gps source + void setGPSSource(String device); } diff --git a/location/java/android/location/LocationManager.java b/location/java/android/location/LocationManager.java index 2817df8..9a66039 100644 --- a/location/java/android/location/LocationManager.java +++ b/location/java/android/location/LocationManager.java @@ -272,6 +272,14 @@ public class LocationManager { return provider; } + public void setGPSSource(String device) { + try { + mService.setGPSSource(device); + } catch (RemoteException e) { + Log.e(TAG, e.getMessage()); + } + } + /** * Returns a list of the names of all known location providers. All * providers are returned, including ones that are not permitted to be |