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


Motorola 68060 68EC060 MC68EC060RC75 CPU / Processor AMIGA unused, new USA stock picture

Motorola 68060 68EC060 MC68EC060RC75 CPU / Processor AMIGA unused, new USA stock

$69.99



New Greaseweazle V4.1 USB Floppy Adapter Flux Reader Writer Amiga PC Case 1598 picture

New Greaseweazle V4.1 USB Floppy Adapter Flux Reader Writer Amiga PC Case 1598

$36.36



New Greaseweazle V4.1 USB Floppy Adapter Flux Reader Writer Amiga Atari ST 1591 picture

New Greaseweazle V4.1 USB Floppy Adapter Flux Reader Writer Amiga Atari ST 1591

$28.73



New Amiga Gotek OLED IIC I2C 0.91

New Amiga Gotek OLED IIC I2C 0.91" 128x32 LCD Display Module 3.3V 5V White 679

$6.57



Camera Precise Positioning Support Video Record for Acmer Laser Engraving picture

Camera Precise Positioning Support Video Record for Acmer Laser Engraving

$150.78



Camera for Laser Engraving Machine picture

Camera for Laser Engraving Machine

$186.67







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