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
New Contributor
sushanth
Posts: 2
Registered: ‎07-10-2012
My Device: BB Torch 9800
My Carrier: Docomo

Get GPS info using Autonomous and CellSite Mode parallelly using MultiThreading

I tried to get the GPS latitude and longitude values using Autonomous and CellSite Mode parallelly using two threads, but while execution only one thread is being active and I get values from only that, the other thread doesn't return any values at all.

 

Is it possible to retrieve the GPS information using multiple threads running parallelly and also can I display the latitude and longitude values from the threads on the screen with less accuracy rate among the values.

 

Thanks in advance...

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: Get GPS info using Autonomous and CellSite Mode parallelly using MultiThreading

The process you are using works in general, in other words, it is possible to have separate Threads trying both Cell Site and GPS Location Providers.

 

Be aware that the Cell Site Provider will return a lot faster than the GPS Provider, so perhaps you are not waiting long enough for the GPS location?

Please use plain text.