11-30-2010 07:28 AM - edited 11-30-2010 07:33 AM
I have had an issue with the "providerStateChanged" method not being called on my OS 5.x GPS App. It has been raised as a bug by others too. I've was told it would be fixed in OS 6, but maybe not in OS 5.x
I have upgraded my Bold 9700 to OS 6.0: 6.0 Bundle 1202 (v184.108.40.2064, Platform 220.127.116.11).
My App runs okay in the OS 6.0 simulator. Left it running overnight and it reports the location (albeit the same one) every minute.
If I deploy it on my phone (Bold 9700) it runs for about 5 minutes then hangs, The screen isn't refreshed and time stays at last reported location.
Once again the "providerStateChanged" method is never called.
Any suggestions where to look. As it doesn't happen in the simulator I can't debug it.
11-30-2010 10:44 AM
A few suggestions:
1) You may be updating the GUI from a non-event dispatching thread.
2) Test your app on a 5.0 simulator
3) After it hangs, Press Alt+LGLG to see the event log. Usually, there will be a stack trace for you to debug.
4) You can always put a try-catch block to the method and print the error to a log file.