BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-02-2009, 10:54 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2009
Model: 7100T
PIN: N/A
Carrier: Sprint
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to get GPS location faster

Please Login to Remove!

I am using 9530 and my provider is T-Mobile. It takes me about 8 sec or more for getting location. This is part of the code:
//accuricy is 100
LocationProvider locationProvider = LocationProvider.getInstance( criteria );
Location location = locationProvider.getLocation( -1 );
qualifiedCoordinates = location.getQualifiedCoordinates();

Is it possible to make this process faster? Let say 1 sec.
Offline  
Old 09-03-2009, 08:18 AM   #2 (permalink)
BlackBerry Master
 
dankarlinski's Avatar
 
Join Date: May 2007
Model: 1
Carrier: 1
Posts: 3,391
Post Thanks: 1
Thanked 2 Times in 2 Posts
Default

Wirelessly posted (White and Nerdy)

Carry a map? Lol


I don't think you can do 1 second. Tmobile will allow you to use aGPS to assist pinpointing. Agps is basically using the cell towers to trianglate you as the gps works.
Offline  
Old 09-03-2009, 08:24 AM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

8 seconds is actually very fast for autonomous GPS first fix - I would actually think that is impossible. A first fix for a cold chip is probably more like 20 seconds MINIMUM.

Now, once the chip is warm, and it has found a few satellites and received position info from them, you can pretty much get continuous fixes. Navigation systems do this, for example.

The method to do this is to set up a LocationListener and set the frequency to something like 3 seconds.

One warning: this will burn your battery up very quickly. On my Storm, I can get maybe 3 hours of battery while running the GPS continuoulsy.
Offline  
Old 09-03-2009, 01:22 PM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2009
Model: 7100T
PIN: N/A
Carrier: Sprint
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much.
Offline  




Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.