BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-24-2008, 01:06 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2008
Model: 7100T
PIN: N/A
Carrier: optus
Posts: 24
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default LocationProvider explanation.

Please Login to Remove!

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?
Offline  
Old 07-24-2008, 03:43 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2007
Model: 8800
PIN: N/A
Carrier: T-Mobile
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

look there: RIM Device Java Library
Offline  
Old 07-27-2008, 06:28 PM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2008
Model: 7100T
PIN: N/A
Carrier: optus
Posts: 24
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

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.
Offline  
Closed Thread


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

Diversitech 440v/35 + 5MFD Motor Run Capacitor 4JJ0535
$15.0
Diversitech 440v/35 + 5MFD Motor Run Capacitor 4JJ0535 pictureStarter Kit for Arduino Resistor /LED / Capacitor / Jumper Wires / Breadboard...
$14.22
Starter Kit for Arduino Resistor /LED / Capacitor / Jumper Wires / Breadboard... pictureDiversitech 10uF 440v 50/60Hz Motor Run Capacitor 45100H
$10.0
Diversitech 10uF 440v 50/60Hz Motor Run Capacitor 45100H picture4PCS SIEMENS 2200UF-25V AXIAL LEAD ELECTROLYTIC CAP.
$9.95
4PCS SIEMENS 2200UF-25V AXIAL LEAD ELECTROLYTIC CAP. picture10PCS 47UF-35V DIPPED TANTALUM CAPACITOR
$9.95
10PCS 47UF-35V DIPPED TANTALUM CAPACITOR picture






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