GPS Best Practices for Blackberry: First, Don’t Use GPS

GPS Best Practices for Blackberry: First, Don’t Use GPS

I’m approaching the half-way point on a new Blackberry Project that is heavily dependent upon location services for basic operation.

Having just completed work on an iPhone version and an Android version of the same application, one would think that there shouldn’t be any surprises third time ’round.

One would be wrong.

If you’re using the Location Manager for Blackberry, and you intend to use the device outdoors, everything is copacetic.

If, however, you intend on using GPS and Location Manager inside… well, let’s just say you better think again.

Doesn’t work. Can’t work. No line of sight to at least three GPS satellites.

All is not totally lost; provided you simply give up trying to use GPS on Blackberry.

What is a developer to do, then, that needs – desperately – to use location based services on Blackberry?

The answer is that you have to do what Google Maps does; namely, use the nearest cell tower and local area code to determine location.

In the next day or so, I’ll include sample code for pulling this little feat off.

The bad news is that you lose the promise of the accuracy of true GPS with this approach. But the great news is that this approach will always work, provided you have a cell signal.

Stay tuned.

Advertisements

One thought on “GPS Best Practices for Blackberry: First, Don’t Use GPS

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s