08-24-2011 06:51 AM
While Debugging Application in Eclipse I found that though I used two Different LocationProvider with 2 different Criteria and two different Listener for Provider , The Previous providers listener will be made null. as shown in attached image..
08-24-2011 09:25 AM - edited 08-24-2011 09:28 AM
As telematicus said,
A solution to your problem is to have a singleton who send the position get from the provider.
After, you can use a Timer with two timerTask (1 scedule at 5 sec. and another at 42 sec) and calling your singleton to have the position, you can securise your procedure by validate the date in the position against the real time clock.
A solution in theory only, but i use a similar procedure to swith on and off the BlackberryLocationProvider from different condition and it work perfectly