09-01-2011, 04:19 AM
|
#1 (permalink)
|
| Knows Where the Search Button Is
Join Date: Dec 2009 Location: Sri Lanka Model: 9000 PIN: N/A Carrier: Software Engineer
Posts: 21
Post Thanks: 0 Thanked 0 Times in 0 Posts
| 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
| |