BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 12-22-2008, 01:06 AM   #1
naveen4nkp
New Member
 
Join Date: Dec 2008
Model: 8100
PIN: N/A
Carrier: Airtel
Posts: 6
Exclamation problem in getting GPS Information

Please Login to Remove!

hello all,
i am trying to get the GPS Information ( longitude and latitude) and getting null in return. For that i am using the code is given below

try {
Criteria cr = new Criteria();
cr.setHorizontalAccuracy(500);

LocationProvider lp = LocationProvider.getInstance(cr);

Location l = lp.getLocation(60);
Coordinates c = l.getQualifiedCoordinates();
if (c != null) {

double lat = c.getLatitude();
double lon = c.getLongitude();
Dialog.alert("lat and long :" + lat + " " + lon);
}
} catch (Exception e) {
Dialog.alert("Unable to get the GPS Information :"+e);
}
}
and let me know the list of supported device .
Offline  
Old 12-22-2008, 08:10 AM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

What OS Level are you runing on?

Which device model are you trying to run on?

Is this the simulator or a device?

Which network?

All of these can impact your results.
Offline  
Old 12-24-2008, 12:34 AM   #3
naveen4nkp
New Member
 
Join Date: Dec 2008
Model: 8100
PIN: N/A
Carrier: Airtel
Posts: 6
Default problem in getting GPS Information

hi,
i am trying to get GPS information for
Model :- BalckBerry 8830 WordEdition
Service Provider : Airtel
Offline  
Old 12-24-2008, 10:26 AM   #4
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

I'm looking at a RIM document for support GPS carriers on the 8830, and I don't see your carrier, so this might be a carrier issue.

You can try forcing autonomous mode (no carrier assistance) by setting "cost-allowed" to "not allowed" in your criteria.

You might also try (first) pasing a null Criteria to get the default provider. Perform a status request on this provider and see if it is unavailable.
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


Analog Devices ADALM 2000 Advanced Active Learning Module | Computer Engineering picture

Analog Devices ADALM 2000 Advanced Active Learning Module | Computer Engineering

$189.99



Tektronix 7854 Waveform Calculator. picture

Tektronix 7854 Waveform Calculator.

$199.00



Measurement Computing PCI Multifunction Analog & Digital I/O PCI-DAS1200 picture

Measurement Computing PCI Multifunction Analog & Digital I/O PCI-DAS1200

$49.99



Delta Computer Controls A2 - Analog Input Card for Delta RMC75 EXP70-A2 picture

Delta Computer Controls A2 - Analog Input Card for Delta RMC75 EXP70-A2

$680.00



CNCTOPBAOS 4 Axis Offline Stand Alone CNC Motion Controller System DDCSV3.1 (01) picture

CNCTOPBAOS 4 Axis Offline Stand Alone CNC Motion Controller System DDCSV3.1 (01)

$229.90



Measurement Computing 197728B USB 1608HS-2A0 16-Channel Digital DAQ +2 Analog picture

Measurement Computing 197728B USB 1608HS-2A0 16-Channel Digital DAQ +2 Analog

$422.50







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