Thanks for the tipp. I did indeed enableMyLocation and will try your advice.
Stephan On 17 Jan., 14:38, Spiral123 <cumis...@gmail.com> wrote: > I seem to remember having a similar problem. Does your Map app > display the Users current location at any point? > > If yes, try calling MyLocationOverlay.enableMyLocation() to start > updates in your MapView's onResume() and > MyLocationOverlay.disableMyLocation() to stop in the onPause() and see > if your GPS problem goes away. > > On Jan 17, 2:19 am, Stephan Wiesner <testexpe...@googlemail.com> > wrote: > > > > > > > > > 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