BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-01-2011, 04:19 AM   #1
prasadrajapaksha
Knows Where the Search Button Is
 
Join Date: Dec 2009
Location: Sri Lanka
Model: 9000
PIN: N/A
Carrier: Software Engineer
Posts: 21
Default GPS Information

Please Login to Remove!

Hi Everybody,

I am developing a blackberry application which uses GPS information. I am testing the app from Sri Lanka. The target device OS is 4.6.0 or later. The code written by me is working with the emulator. But once I installed it to the real Blackberry bold device it's not working. Earlier I got GPS timeout issue. Then I have added following code.

Criteria myCriteria = new Criteria();

myCriteria.setHorizontalAccuracy(Criteria.NO_REQUI REMENT);

myCriteria.setVerticalAccuracy(Criteria.NO_REQUIRE MENT);

myCriteria.setCostAllowed(true);

myCriteria.setPreferredPowerConsumption(Criteria.P OWER_USAGE_LOW);

Then that error was solved. But the app didn't work. I got the out put of the exception. but that also null.

I have two questions here.

1. My blackberry bold 9000 device os is 4.6.0. Will GPS work with these configurations?
2. Since I am from Sri Lanka, Do I need to purchase a data plan?

I just need to get latitude, longitude, country, state, and city. If anyone has sample code for 4.6.0 OS it will be a great help for me.

Thank you so much.

Prasad.
Offline  
Old 09-01-2011, 09:11 AM   #2
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Default Re: GPS Information

1. Yes
2. No, not for autonomous mode (see below), but the 9000 GPS is not particulary sensitive (compared to modern chipsets). You do need to give it a clear, unobstructed view of the sky for long enough for it to lock onto the satelites for the first time. After that it may work inside (depending on the building structure), or when near a window.

The criteria you have specified though will put the device in assisted GPS mode which will need a plan and AGPS support from the carrier. Check the API documentation for Criteria and set it up to put the device in Automomous mode.
__________________
My other Blackberry is a PlayBook.
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: GPS Information
Thread Thread Starter Forum Replies Last Post
BBWeather Experimental with GPS tateu Aftermarket Software 136 07-12-2010 04:18 PM
8830 and 4.5 OS GPS issues MrVideo General Legacy Device Discussion 0 08-27-2009 12:40 AM
GPS on Verizon Curve (8330) - How can 'we' get it working? MrRedPants GPS & Mapping 3 07-22-2009 02:34 PM
US Cellular 8830 GPS problem jrusch General Legacy Device Discussion 14 02-04-2009 11:13 AM
problem in getting GPS Information naveen4nkp Developer Forum 3 12-24-2008 10:26 AM


HP-Agilent-Keysight 41951-69001/ 41951-61001 Impedance Test Adapter for 41951A picture

HP-Agilent-Keysight 41951-69001/ 41951-61001 Impedance Test Adapter for 41951A

$500.00



Digital Ohmmeter LCD Audio Impedance Test Meter Speaker Voice Resistor System picture

Digital Ohmmeter LCD Audio Impedance Test Meter Speaker Voice Resistor System

$83.60



Fluke  845AR High Impedance Voltmeter-Null Detector picture

Fluke 845AR High Impedance Voltmeter-Null Detector

$500.00



IMPEDENCE MATCHING TRANSFOMER BNC F-BNC F, 50 OHM TO 75 OHM, 20-1100 MHZ picture

IMPEDENCE MATCHING TRANSFOMER BNC F-BNC F, 50 OHM TO 75 OHM, 20-1100 MHZ

$28.00



Com-Power Line Impedance Stabilization Network LI-200 picture

Com-Power Line Impedance Stabilization Network LI-200

$249.99



GE MRI High Impedance ECG Leads E8819RC picture

GE MRI High Impedance ECG Leads E8819RC

$359.99







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