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


Bissell 3-in-1 Lightweight Corded Stick Vacuum 2030 picture

Bissell 3-in-1 Lightweight Corded Stick Vacuum 2030

$28.88



BISSELL 3-in-1 Turbo Lightweight Stick Vacuum, 2610 (Black) picture

BISSELL 3-in-1 Turbo Lightweight Stick Vacuum, 2610 (Black)

$37.96



Dirt Devil Scorpion Plus Corded Handheld Vacuum Cleaner SD30025VB Red NEW picture

Dirt Devil Scorpion Plus Corded Handheld Vacuum Cleaner SD30025VB Red NEW

$35.00



Shop Vacuum upholstery extractor conversion kit auto vac detail carpet or home.  picture

Shop Vacuum upholstery extractor conversion kit auto vac detail carpet or home.

$192.00



3 CFM Air Vacuum Pump HVAC Manifold Gauge Set AC A/C Refrigeration Kit picture

3 CFM Air Vacuum Pump HVAC Manifold Gauge Set AC A/C Refrigeration Kit

$46.03



VEVOR 5 Gallon Vacuum Chamber with 5CFM Vacuum Pump Kit 1/3HP Single Stage 110V picture

VEVOR 5 Gallon Vacuum Chamber with 5CFM Vacuum Pump Kit 1/3HP Single Stage 110V

$104.99







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