diff options
author | Cuong <cuongbui@gmail.com> | 2012-01-21 14:06:36 +0100 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2012-01-28 15:49:55 -0800 |
commit | 66e84739c062969ffbd4010e0518f79061143d19 (patch) | |
tree | 057dac8c063cba39ba34266f7434e42da170aa4a /location | |
parent | 9ca1b837689be8738ea89bb5acacdeb3d4dc0586 (diff) | |
download | frameworks_base-66e84739c062969ffbd4010e0518f79061143d19.zip frameworks_base-66e84739c062969ffbd4010e0518f79061143d19.tar.gz frameworks_base-66e84739c062969ffbd4010e0518f79061143d19.tar.bz2 |
External BT GPS for ICS. see http://iloki.nl for more information
Change-Id: I533cadf0363a9de278730c29c97e342e26bf8726
Signed-off-by: Cuong <cuongbui@gmail.com>
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 |