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

Tektronix TM506 Power Module / Test & Measurement System Mainframe - 6 Slot
$95.0
Tektronix TM506 Power Module / Test & Measurement System Mainframe - 6 Slot pictureAgilent U1056A Acqiris CC103 3-slot CompactPCI PXI Crate Mainframe Chassis cPCI
$999.99
Agilent U1056A Acqiris CC103 3-slot CompactPCI PXI Crate Mainframe Chassis cPCI pictureHP 8153A Lightwave Multimeter Mainframe
$150.0
HP 8153A Lightwave Multimeter Mainframe pictureHAMEG Dual Mainframe HM8001-1 w/ HM8040-2 Digital Multimeter HM8011-3
$1349.99
HAMEG Dual Mainframe HM8001-1 w/ HM8040-2 Digital Multimeter HM8011-3 pictureHP 16702A-003 Logic Analyzer Mainframe w/ 2 x 16716A Analyzer modules
$1000.0
HP 16702A-003 Logic Analyzer Mainframe w/ 2 x 16716A Analyzer modules picture






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