Re: [android-developers] MapView + LocationManager Question

2010-08-26 Thread Sebastián Treu
On Tue, Aug 10, 2010 at 9:31 PM, TreKing treking...@gmail.com wrote: On Tue, Aug 10, 2010 at 4:40 PM, Tommy droi...@gmail.com wrote: So if I were to set requestLocationUpdates(String provider, 6, 0, LocationListener listener, Looper looper) it would be the same on the batter as if I were

Re: [android-developers] MapView + LocationManager Question

2010-08-10 Thread TreKing
On Tue, Aug 10, 2010 at 4:13 PM, Tommy droi...@gmail.com wrote: Is this something that I can't do in a MapView? No. MapView is to view a map. It has no concept of GPS in and of itself. Does the GPS have to be on all the time in order to work? No. That's precisely what the parameters to

RE: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Tommy
-develop...@googlegroups.com] On Behalf Of TreKing Sent: Tuesday, August 10, 2010 5:20 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] MapView + LocationManager Question On Tue, Aug 10, 2010 at 4:13 PM, Tommy droi...@gmail.com wrote: Is this something that I can't do

Re: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Costantinos Costa
Dear Tommy, The function requestLocationUpdates is offering the utility to set the interval time for gps to collect a location requestLocationUpdates(String provider, long minTime, float minDistance, LocationListener listener, Looper looper) You can see more details at:

Re: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Mark Murphy
On Tue, Aug 10, 2010 at 5:27 PM, Tommy droi...@gmail.com wrote: Ok, but when I do RequestLocationUpdates with a 5 minute or 1 mile parameter the GPS signal stays on all the time(or at least the image stays up in the task bar, and it kills my battery). it only turns off when I call the

Re: [android-developers] MapView + LocationManager Question

2010-08-10 Thread TreKing
On Tue, Aug 10, 2010 at 4:13 PM, Tommy droi...@gmail.com wrote: Is this something that I can't do in a MapView? Sorry - I misread this, I think. You can certainly get GPS updates for a MapView (specifically a MapActivity). But it's not a function of the MapView itself, is what I mean. On

RE: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Tommy
: [android-developers] MapView + LocationManager Question Dear Tommy, The function requestLocationUpdates is offering the utility to set the interval time for gps to collect a location requestLocationUpdates(String provider, long minTime, float minDistance, LocationListener listener, Looper

Re: RE: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Kostya Vasilyev
I wonder if this is a threading issue. Your code uses Timer to schedule the next time you request a location update. I believe it's a Java SDK class, and can invoke your runnable on its own thread. Have you tried using a Handler? It's an Android class, and will invoke your runnable on the UI

RE: RE: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Tommy
, 2010 5:50 PM To: android-developers@googlegroups.com Subject: Re: RE: [android-developers] MapView + LocationManager Question I wonder if this is a threading issue. Your code uses Timer to schedule the next time you request a location update. I believe it's a Java SDK class, and can invoke your

Re: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Costantinos Costa
Friend Tommy, I understand that your goal is to reduce energy consuption by reduce GPS connection needed energy . I believe and i did a little search about this that if you have a connection with the satellite and just don't transfer any data the energy consumption is smaller than turn off and

RE: RE: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Tommy
the Android Forums comes through with shining colors. From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Kostya Vasilyev Sent: Tuesday, August 10, 2010 5:50 PM To: android-developers@googlegroups.com Subject: Re: RE: [android-developers] MapView

Re: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Frank Weiss
It may also be good practice to give the user the option to turn GPS off for your application. That is, when the option is off, your application removes location updates. The idea is that the user can still use your application, but can control the battery usage. Of course, in this case, the user

RE: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Tommy
6:17 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] MapView + LocationManager Question It may also be good practice to give the user the option to turn GPS off for your application. That is, when the option is off, your application removes location updates. The idea

Re: [android-developers] MapView + LocationManager Question

2010-08-10 Thread TreKing
On Tue, Aug 10, 2010 at 4:40 PM, Tommy droi...@gmail.com wrote: So if I were to set requestLocationUpdates(String provider, 6, 0, LocationListener listener, Looper looper) it would be the same on the batter as if I were to set a timer for every 1 minute or whatever to call up the GPS

RE: [android-developers] MapView + LocationManager Question

2010-08-10 Thread Tommy
to be used will probably turn out to be the most efficent way though. From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of TreKing Sent: Tuesday, August 10, 2010 8:31 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] MapView