Hi,
my HTC users keep complaining that i don't turn off the GPS when they exit
my Google Maps app. The emulator shows the GPS symbol when I start my app,
but none of my test devices do (Samsung Galaxy S, SE Xperia Mini Pro).
I don't turn on the gps in the first place. And understood that I am not
allowed to do it, even if i wanted to.

Here is my code:
onCreate:
locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
Criteria criteria = new Criteria();
bestProvider = locationManager.getBestProvider(criteria, false);

and
protected void onPause() {
super.onPause();
locationManager.removeUpdates(this);

and
@Override
protected void onResume() {
super.onResume();
locationManager.requestLocationUpdates(bestProvider, 10000, 10, this);

Anybody knows if HTC turns on GPS by default?

Greetings from foggy Zurich,
Stephan Wiesner

-- 
Interessiert an Android?
http://android-schweiz.blogspot.com/
Whant to learn German?
http://german-podcast.blogspot.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to