BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-26-2011, 10:50 AM   #1
sllado
New Member
 
Join Date: Apr 2011
Model: 9810
PIN: N/A
Carrier: Movistar
Posts: 3
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



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

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


Blackberry Advertising Banner Vinyl Mesh Sign Fruit Vegetable Berry Farm Fresh picture

Blackberry Advertising Banner Vinyl Mesh Sign Fruit Vegetable Berry Farm Fresh

$179.95



Brand New Miyoo Mini PLUS LCD replacement Screen, FOR Miyoo PLUS, LCD Display picture

Brand New Miyoo Mini PLUS LCD replacement Screen, FOR Miyoo PLUS, LCD Display

$18.80



BlackBerry Pearl 8100 Retail Display Unit - Pale Gold - Fake play movie Prop D3 picture

BlackBerry Pearl 8100 Retail Display Unit - Pale Gold - Fake play movie Prop D3

$12.99



Brand New V2/V3 Miyoo Mini LCD replacement Screen, Original Miyoo LCD picture

Brand New V2/V3 Miyoo Mini LCD replacement Screen, Original Miyoo LCD

$18.48



FARM FRESH BLACKBERRIES CLEARANCE BANNER Advertising Vinyl Flag Sign AAA picture

FARM FRESH BLACKBERRIES CLEARANCE BANNER Advertising Vinyl Flag Sign AAA

$249.77



SFT DONGLE for Samsung Xiaomi Blackberry Sony SMART FLASHER TOOL NEW picture

SFT DONGLE for Samsung Xiaomi Blackberry Sony SMART FLASHER TOOL NEW

$155.72







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