Can you please help me to create Blackberry GPS Sample Demo? Actually I am messed with so many devices of Blackberry and some has GPS receiver and others don't have.
If the device has GPS receiver how it will search for the current device location? and what if the device does not have GPS like BB 8520 ?
Please share your understandings about GPS in Blackberry and how can I achieve Latitude and Longitude of Device Location whether by GPS or not.
Thank you
try this , this will check the gps. If gps is available, then it will get the location, else, it will find the location from the network.
call this class on your class -
handleGPS gps=new handleGPS();
This previous SO post should point you in the right direction.
Regarding other methods, you can use Triangulation, in which you can use the signal strength from at least 3 cell towers to obtain a rough estimate of your location. Depending on how accurate you need the location, Triangulation will most likely be faster than GPS, but GPS will be significantly much more accurate (triangulation tends to have a best case margin of error of about 100m).
Note however, that if you are inside a building or do not have a clear view of the sky, the GPS will most likely not work.