diff --git a/src/com/android/droidgap/PhoneGap.java b/src/com/android/droidgap/PhoneGap.java index 1f61ec3a..947f7c8d 100644 --- a/src/com/android/droidgap/PhoneGap.java +++ b/src/com/android/droidgap/PhoneGap.java @@ -37,6 +37,10 @@ public class PhoneGap { vibrator.vibrate(pattern); } + /* + * Android requires a provider, since it can fall back on triangulation and other means as well as GPS + */ + public void getLocation(String provider){ LocationManager locMan = (LocationManager) mCtx.getSystemService(Context.LOCATION_SERVICE); Location myLoc = (Location) locMan.getLastKnownLocation(provider);