BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-28-2008, 08:03 AM   #21
eforr
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 7100i
PIN: N/A
Carrier: nextel
Posts: 23
Default Getting only one coordinate

Please Login to Remove!

in my code that is above is there a way to get the coordinates only once instead of it continuously grabbing the coordinates.
Offline  
Old 07-28-2008, 08:35 AM   #22
jenselense
Thumbs Must Hurt
 
Join Date: Nov 2007
Location: atm: Kunming norm: Berlin
Model: 8700v
PIN: N/A
Carrier: ChinaMobile
Posts: 55
Default

HI,
this is what I want to do too(get location only once).
I try so with locationProvider.getLocation(60) in an extra thread, but it always times out (in the simulator)...
( "javax.microedition.location.LocationException : Timed out while waiting for GPS Location" )

("bluetooth gps in range" is on and I entered a location...) any ideas why it times out?

thanks in advance
JJ
Offline  
Old 07-28-2008, 08:40 AM   #23
eforr
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 7100i
PIN: N/A
Carrier: nextel
Posts: 23
Default reply

from what i understand the location provide doesn't work in the simulator. ( i could be wrong but i think that that is what i read in a blog somewhere). my app timesout in simulator too but on a real phone it works fine. it just won't pick up coordinates and then stop. every 30 seconds it grabs the coordinates again.
Offline  
Old 07-28-2008, 09:28 AM   #24
jenselense
Thumbs Must Hurt
 
Join Date: Nov 2007
Location: atm: Kunming norm: Berlin
Model: 8700v
PIN: N/A
Carrier: ChinaMobile
Posts: 55
Default

It does work in the simulator....

I just exported my project from eclipse to the BB JDE and there it worked!
So my code obviously is correct! But why doesn't i work when I start it out of eclipse!?!?!? any ideas?

@EFORR:
if you want to get your position only once you don't need a locationlistener...
just start a new thread and do getLocation(-1) on your LocationProvider (lp.getLocation(-1))...
Offline  
Old 07-28-2008, 09:31 AM   #25
eforr
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 7100i
PIN: N/A
Carrier: nextel
Posts: 23
Default sorry

i didn't use eclispe, i coded straight in BB JDE
Sorry no ideas
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


1PCS NEW BRAND FESTO Solenoid Valve MEH-5/3G-1/8-B picture

1PCS NEW BRAND FESTO Solenoid Valve MEH-5/3G-1/8-B

$109.56



1pcs New CKD Solenoid Valve F3000-8-W-F picture

1pcs New CKD Solenoid Valve F3000-8-W-F

$32.02



Solenoid, picture

Solenoid,

$28.36



1/2 in 12V DC Brass Electric Solenoid Valve NPT Gas Water Air Normally Closed US picture

1/2 in 12V DC Brass Electric Solenoid Valve NPT Gas Water Air Normally Closed US

$23.11



Cole Hersee (24059-BP) 12V Insulated SPST Continuous Duty Solenoid picture

Cole Hersee (24059-BP) 12V Insulated SPST Continuous Duty Solenoid

$28.89



SA-3786-12 603350 Fuel Shutoff Solenoid Kubota Compatible 721D2 21HP Grasshopper picture

SA-3786-12 603350 Fuel Shutoff Solenoid Kubota Compatible 721D2 21HP Grasshopper

$30.24







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