Re: [android-developers] improving gps lock time

2013-03-10 Thread dashman
Looks like AGPS uses WIFI and cell-phone tower locations.

The problem for my app is that I don't necessarily have access
to data service - so AGPS will not work.

Even though I want to do want AGPS does - i.e. provide a 
start location for getting satellite queries. But my understanding
is that API is not available.


The real problem I have is that I allow users to 
shut the screen off to save batteries and I stop the gps listeners.

Then onResume(), I enable the listeners - and it's here where
the lock time is too much.

Option #2. How about I NOT disable the listeners on onPause() -
but set the listener to every minute.

I would think that would help maintain the lock.

It would save the battery with the screen off. and maybe some
batteries wiith the gps being queried less often now. not sure
of the latter though.






 

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] improving gps lock time

2013-03-10 Thread lbendlin
AGPS does NOT use wifi and cell tower 
locations. http://en.wikipedia.org/wiki/Assisted_GPS

On Sunday, March 10, 2013 8:33:05 AM UTC-4, dashman wrote:

 Looks like AGPS uses WIFI and cell-phone tower locations.

 The problem for my app is that I don't necessarily have access
 to data service - so AGPS will not work.

 Even though I want to do want AGPS does - i.e. provide a 
 start location for getting satellite queries. But my understanding
 is that API is not available.


 The real problem I have is that I allow users to 
 shut the screen off to save batteries and I stop the gps listeners.

 Then onResume(), I enable the listeners - and it's here where
 the lock time is too much.

 Option #2. How about I NOT disable the listeners on onPause() -
 but set the listener to every minute.

 I would think that would help maintain the lock.

 It would save the battery with the screen off. and maybe some
 batteries wiith the gps being queried less often now. not sure
 of the latter though.






  


-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] improving gps lock time

2013-03-10 Thread Kristopher Micinski
If the GPS has been on and the user turns off the screen, there's
nothing you can do to really get a better  approximation to location.

Let's be realistic here: how accurate does your signal need to be?  If
it's pinpoint accuracy (within 60-200 m) then you should be getting
constant fixes anyway.  If it's not, then why is fixing the results of
the output so bad?  If you want a good trade off, I'd say to set up an
alarm manager that requests location fixes at a coarse interval.

Kris

On Sun, Mar 10, 2013 at 8:33 AM, dashman erjdri...@gmail.com wrote:
 Looks like AGPS uses WIFI and cell-phone tower locations.

 The problem for my app is that I don't necessarily have access
 to data service - so AGPS will not work.

 Even though I want to do want AGPS does - i.e. provide a
 start location for getting satellite queries. But my understanding
 is that API is not available.


 The real problem I have is that I allow users to
 shut the screen off to save batteries and I stop the gps listeners.

 Then onResume(), I enable the listeners - and it's here where
 the lock time is too much.

 Option #2. How about I NOT disable the listeners on onPause() -
 but set the listener to every minute.

 I would think that would help maintain the lock.

 It would save the battery with the screen off. and maybe some
 batteries wiith the gps being queried less often now. not sure
 of the latter though.









 --
 --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] improving gps lock time

2013-03-09 Thread TreKing
On Sat, Mar 9, 2013 at 12:28 PM, dashman erjdri...@gmail.com wrote:

 is there any way to initialize the LocationManager gps provider with a
 starting point for the lock - i.e. a lat/lon geo pos to start at.


No, and that wouldn't speed things up anyway.

There's nothing stopping you with starting your own app with some
pre-determined Lat / Lon location and estimated accuracy while you wait for
the actual lock.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] improving gps lock time

2013-03-09 Thread Kristopher Micinski
Although having some idea of where the device is lowers cold start
times, there's not a direct API for specifying where you think the
user might be.

Kris


On Sat, Mar 9, 2013 at 2:29 PM, TreKing treking...@gmail.com wrote:

 On Sat, Mar 9, 2013 at 12:28 PM, dashman erjdri...@gmail.com wrote:

 is there any way to initialize the LocationManager gps provider with a
 starting point for the lock - i.e. a lat/lon geo pos to start at.


 No, and that wouldn't speed things up anyway.

 There's nothing stopping you with starting your own app with some
 pre-determined Lat / Lon location and estimated accuracy while you wait for
 the actual lock.

 -
 TreKing - Chicago transit tracking app for Android-powered devices

 --
 --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] improving gps lock time

2013-03-09 Thread dashman

ok - maybe there's other methods.

i've seen apps decrease lock time by contacting NTP servers.

Also apparently assisted gps helps - assisted gps just gets a
wifi geo location - and just using that helps.

i have a geo location also.

i'm sure gps lock speeds can be decreased if you have an
approx geo location...and maybe the precise time - i.e. know
the sat positions etc.

but maybe there's no public api for this - internally looks like
android uses AGPS to speed up lock.
 

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] improving gps lock time

2013-03-09 Thread lbendlin
AGPS doesn't use WiFi. It uses precomputed Almanac/Ephemeris data so the 
GPS receiver has a better idea which satellites to expect, and where. That 
data needs to be refreshed every x days (usually 3 to 7), and is injected 
into the GPS receiver management software. I don't think that software is 
exposed to Android. 

On Saturday, March 9, 2013 8:10:05 PM UTC-5, dashman wrote:


 ok - maybe there's other methods.

 i've seen apps decrease lock time by contacting NTP servers.

 Also apparently assisted gps helps - assisted gps just gets a
 wifi geo location - and just using that helps.

 i have a geo location also.

 i'm sure gps lock speeds can be decreased if you have an
 approx geo location...and maybe the precise time - i.e. know
 the sat positions etc.

 but maybe there's no public api for this - internally looks like
 android uses AGPS to speed up lock.
  


-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




RE: [android-developers] improving gps lock time

2013-03-09 Thread Tommy
Using the AGPS (wifi rather than Sat) will speed up the process a lot but
less accurate. In most cases if going off a home wifi it is pretty accurate
for me. I also notice if the user is OUTSIDE and the phone is not in the
pocket the speed for SAT is pretty good (expect on my 1st gen droid and some
other offshoots of the Moto Droid) 

 

You could grab the AGPS location during a splash screen and query the
accuracy. If it is over X amount ( X being what you determine for meters)
then you can call up the SAT service for the user.

 

From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of dashman
Sent: Saturday, March 09, 2013 8:10 PM
To: android-developers@googlegroups.com
Subject: Re: [android-developers] improving gps lock time

 


ok - maybe there's other methods.

i've seen apps decrease lock time by contacting NTP servers.

Also apparently assisted gps helps - assisted gps just gets a
wifi geo location - and just using that helps.

i have a geo location also.

i'm sure gps lock speeds can be decreased if you have an
approx geo location...and maybe the precise time - i.e. know
the sat positions etc.

but maybe there's no public api for this - internally looks like
android uses AGPS to speed up lock.
 

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an
email to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.