BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links



Reply
 
LinkBack Thread Tools
  (#1 (permalink)) Old
skynetchris Offline
Knows Where the Search Button Is
 
Posts: 23
Join Date: Apr 2008
Model: 7100T
PIN: N/A
Carrier: optus
Default LocationProvider explanation. - 07-24-2008, 01:06 AM

Hi guys,

when using location provider I've been doing the following:

Code:
_locationProvider.setLocationListener(new LocationListenerImpl(), 300, 15, 10);
My question is to do with the passed variables:

int interval,
int timeout,
int maxAge

Interval is set at 300 seconds, does this mean the Location provider 'wakes up' after five minutes and gets a single position report, or is it constantly updating?

Timeout, this is the time in seconds the GPS chip has to get a report after five minutes?

Max age, this should be OLDER than timeout? because if timeout is 15 (meaning the GPS chip COULD get a report in the first 4 seconds) and the maxAge is 10 (anything older than 10 seconds is discarded) a location recieved in the first 4 seconds would be ignored?
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
zimmi Offline
New Member
 
Posts: 11
Join Date: Nov 2007
Model: 8800
PIN: N/A
Carrier: T-Mobile
Default 07-24-2008, 03:43 AM

look there: RIM Device Java Library
   
Reply With Quote
  (#3 (permalink)) Old
skynetchris Offline
Knows Where the Search Button Is
 
Posts: 23
Join Date: Apr 2008
Model: 7100T
PIN: N/A
Carrier: optus
Default 07-27-2008, 06:28 PM

Quote:
Originally Posted by zimmi View Post
I have.
   
Reply With Quote
  (#4 (permalink)) Old
skynetchris Offline
Knows Where the Search Button Is
 
Posts: 23
Join Date: Apr 2008
Model: 7100T
PIN: N/A
Carrier: optus
Default 07-28-2008, 05:49 PM

Answering my own question, from nokia database:

Quote:
With this it is possible to define the following
parameters: the interval (in seconds) at which the application wants to receive events; the timeout
value, which indicates how late (in seconds) an update is allowed to be in comparison to the defined
interval; the maxage value, which defines how old the location update value is allowed to be.
   
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On






Copyright © 2004-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1