From 4ce3c333812410a4dd8b26b735a340038db53304 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Wed, 15 Oct 2008 14:31:09 -0700 Subject: [PATCH] More comments --- src/com/android/droidgap/PhoneGap.java | 4 ++++ 1 file changed, 4 insertions(+) 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);