More comments

This commit is contained in:
Joe Bowser 2008-10-15 14:31:09 -07:00
parent 88127f0b20
commit 4ce3c33381

View File

@ -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);