Sarah
Sarah

Reputation: 1905

BlackBerry Cell Tower Location

I have successfully acquired location in my BlackBerry through the criteria;

BlackBerryCriteria myCriteria = new BlackBerryCriteria(LocationInfo.GEOLOCATION_MODE)

The location was acquired in the following scenario:

My question is what is this location that is acquired - GPS or Cell Tower Triangulation?

I believe since the location is acquired indoors without any GPS fix, it should be a Cell Tower location. I do not have mobile coverage yet the location is acquired. How is the cell tower information obtained then? If I was using a roaming GPRS connection, would the location obtained be any different (based on the IP settings)? For reference, below is the complete code of obtaining the location:

 try
 {
     BlackBerryCriteria myCriteria = new BlackBerryCriteria(LocationInfo.GEOLOCATION_MODE);
     try
     {
         BlackBerryLocationProvider myProvider = (BlackBerryLocationProvider)
         LocationProvider.getInstance(myCriteria);
         try
         {
             BlackBerryLocation myLocation = (BlackBerryLocation)myProvider.getLocation(30000);
             double _longitude = myLocation.getQualifiedCoordinates().getLongitude();
             double _latitude = myLocation.getQualifiedCoordinates().getLatitude();

             setLocation(new Coordinates(_latitude, _longitude, 0.0f)); 

         }
         catch (InterruptedException e)
         {
             showException(e);
         }
         catch (LocationException e)
         {
             showException(e);
         }
     }
     catch (LocationException e)
     {
         showException(e);
     }
} 

Upvotes: 1

Views: 364

Answers (1)

Nate
Nate

Reputation: 31045

If I'm reading your description correctly:

No mobile coverage on the BlackBerry handset
Active internet connection
No GPS fix

you must have a Wi-Fi connection then (active internet, but no mobile coverage).

So, the device is then using Wi-Fi geolocation (aka WLAN geolocation), which was added a bit late in the development of BlackBerry Java (although, it's still been available for a while ... OS 6.0+).

http://devblog.blackberry.com/2011/09/wifi-geolocation-launch/

Obviously, the test is to turn off your Wi-Fi, and see if you still get location fixes.

Upvotes: 1

Related Questions