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 08:42 AM
US Cellular 8830 GPS problem jrusch General Legacy Device Discussion 14 02-04-2009 10:13 AM
tomtom gps & modem mode enabled gre3d General 9000 Series Discussion - Bold 0 12-19-2008 06:06 PM
Review: Blackberry GPS software alternatives spblat GPS & Mapping 17 12-20-2007 04:03 PM
Review: Beyond411 With GPS Support AKA Berry411 Entropy666 BBF Reviews 3 07-22-2007 10:37 PM

Synertek 6502 CPU 40 PIN DIP SY6502 CPU for Commodore Apple Atari Acorn & Others
$7.99
Synertek 6502 CPU 40 PIN DIP SY6502 CPU for Commodore Apple Atari Acorn & Others pictureJelenko Commodore 100 Dental Laboratory Oven/Furnaces 120V - for Parts
$149.76
Jelenko Commodore 100 Dental Laboratory Oven/Furnaces 120V - for Parts pictureReconditioned Windsor Commodore 20 Carpet Extractor
$3025.0
Reconditioned Windsor Commodore 20 Carpet Extractor pictureCommodore II Oversize Leather Executive Chair, Black
$201.82
Commodore II Oversize Leather Executive Chair, Black  pictureROMOX   "ATTACK at EP-CYG-4"  POSTER  for Atari Commodore & Texas Instruments.
$99.0
ROMOX  






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