的addEventListener安裝前Ti.geolocation.Android
Ti.Geolocation.Android.manualMode = true;
Ti.Geolocation.Android.addLocationProvider(Ti.Geolocation.Android.createLocationProvider({
name : Ti.Geolocation.PROVIDER_GPS,
minUpdateDistance : 1, // 1 metre
minUpdateTime: 1 // one per second
}));
Ti.Geolocation.Android.addLocationRule(Ti.Geolocation.Android.createLocationRule({
provider : Ti.Geolocation.PROVIDER_GPS,
accuracy : 50, // Updates should be accurate to 50m
maxAge: 1000, // Updates should be no older than 1 seconde
minAge: 200, // But no more frequent than 5 per seconds
}));