BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-26-2011, 10:50 AM   #1 (permalink)
New Member
 
Join Date: Apr 2011
Model: 9810
PIN: N/A
Carrier: Movistar
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Cell mode GPS "Timeout"

Please Login to Remove!

Hello,

I'm developing a program to OS 5.0 and to get GPS latitude and longitude I do.
BlackBerryLocationProvider bbProvider = null;
BlackBerryLocation bbLocation = null;

if (GPSInfo.isGPSModeAvailable(GPSInfo.GPS_MODE_CELLS ITE)) {
_myCriteria = new BlackBerryCriteria(GPSInfo.GPS_MODE_CELLSITE);
if (GPSInfo.isGPSModeAvailable(GPSInfo.GPS_MODE_AUTON OMOUS))
{
_myCriteria.setFailoverMode(GPSInfo.GPS_MODE_AUTON OMOUS, 1, 30);
_myCriteria.setSubsequentMode(GPSInfo.GPS_MODE_AUT ONOMOUS);
}
}

try {
bbProvider = (BlackBerryLocationProvider)LocationProvider.getIn stance(_myCriteria);
} catch (LocationException e) {
System.out.println(e.getMessage());
_latitude=0;
_longitude=0;
_finished=true;
return;
}
if (bbProvider!=null)
{
try {
bbLocation = (BlackBerryLocation) bbProvider.getLocation(-1);
} catch (LocationException e) {
System.out.println(e.getMessage());
_latitude=0;
_longitude=0;
_finished=true;
return;
} catch (InterruptedException e) {
System.out.println(e.getMessage());
_latitude=0;
_longitude=0;
_finished=true;
return;
}
}
else
{
_latitude=0;
_longitude=0;
_finished=true;
return;
}

if (bbLocation!=null && bbLocation.isValid())
{
_latitude=bbLocation.getQualifiedCoordinates().get Latitude();
_longitude=bbLocation.getQualifiedCoordinates().ge tLongitude();
_finished=true;
return;
}
else
{
_latitude=0;
_longitude=0;
_finished=true;
return;

}

But only gets latitude and longitude some times, in an specific place I move 2 meters and it doesn't get it. And the coverage is full? What is wrong? Can be my device BB curve 9520. If It doesn't get latitude it says "Time out ".

Best regards
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

Similar Threads for: Cell mode GPS "Timeout"
Thread Thread Starter Forum Replies Last Post
Cell Broadcast Services johnling General BlackBerry Discussion 2 12-22-2009 09:42 AM
US Cellular 8830 GPS problem jrusch General Legacy Device Discussion 14 02-04-2009 11:13 AM
tomtom gps & modem mode enabled gre3d General 9000 Series Discussion - Bold 0 12-19-2008 07:06 PM
Review: Blackberry GPS software alternatives spblat GPS & Mapping 17 12-20-2007 05:03 PM
Review: Beyond411 With GPS Support AKA Berry411 Entropy666 BBF Reviews 3 07-22-2007 10:37 PM

(A01) BLACKBERRY #PSMO5R-050CHW ADAPTER; In:100-240V 50-60Hz 0.15A;Out:5V 0.5A
$11.99
(A01) BLACKBERRY #PSMO5R-050CHW ADAPTER;  In:100-240V 50-60Hz 0.15A;Out:5V 0.5A pictureNEW OEM ORIGINAL BLACKBERRY MINI USB DATA CABLE ASY-06610-001 V3 5 FEET 1.5 M
$6.0
NEW OEM ORIGINAL BLACKBERRY MINI USB DATA CABLE ASY-06610-001 V3  5 FEET 1.5 M picture(A01) BlackBerry PSM04R-050CHW1(M) HDW-17957-003 Cell Phone Charger AC Adapter
$5.99
(A01) BlackBerry PSM04R-050CHW1(M) HDW-17957-003 Cell Phone Charger AC Adapter pictureNEW BlackBerry HDW-14322-001 OEM 3.5mm Stereo Headset Headphones Black Universal
$9.9
NEW BlackBerry HDW-14322-001 OEM 3.5mm Stereo Headset Headphones Black Universal picture(A01) BLACKBERRY #CLMO3D-050 ADAPTER FOR CAR; In:12V 500mA;Out:5V 500mA
$11.99
(A01) BLACKBERRY #CLMO3D-050 ADAPTER FOR CAR;  In:12V 500mA;Out:5V 500mA picture






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