Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 17
Registered: ‎04-16-2011
My Device: 7100T
My Carrier: BB

Implement the cell tower triangulation in Blackberry java

Hi,

 

I am new in blackberry development, I want to get the lat,lon and accuracy from cell tower tringulation.

 

what is the cell tower tringulation and how to implement .

 

Please give me any short example.

 

Thanks in advance

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Implement the cell tower triangulation in Blackberry java

[ Edited ]

Short answer - don't try to do this.

 

There are various bits of code around that try to do this using Google Gear Server, which is deprecated.  There are other servers out there that will take your Cell tower location and attempt to determine your location using it too I believe.  However I recommend that you just use the BlackBerry supplied equivalents.

 

You can read more here:

http://supportforums.blackberry.com/t5/Java-Development/Location-APIs-Start-to-finish/ta-p/571949

 

And have a look at the SimpleLocationApi you will find here:

https://developer.blackberry.com/java/samples/

Highlighted
New Developer
Posts: 10
Registered: ‎08-29-2011
My Device: 8350i
My Carrier: Nextel

Re: Implement the cell tower triangulation in Blackberry java

Try this:

 

                criteria.setHorizontalAccuracy(Criteria.NO_REQUIREMENT);
                criteria.setVerticalAccuracy(Criteria.NO_REQUIREMENT);
                criteria.setCostAllowed(true);
                criteria.setPreferredPowerConsumption(Criteria.POWER_USAGE_LOW);

 

And read this:

 

http://docs.blackberry.com/en/developers/deliverables/3803/GPS%20and%20BlackBerry%20Maps%20Developme...

 

Hope it Helps,

MC

Developer
Posts: 52
Registered: ‎11-24-2011
My Device: Bold 9930
My Carrier: Rogers

Re: Implement the cell tower triangulation in Blackberry java

" just use the BlackBerry supplied equivalents"

with all due respect peter, it may not work for CDMA network, 

unless PDE was obtained and set up for certain carriers.

In fact, I bookmarked your post how does BB Maps do it and wait for...