09-13-2009 11:12 PM
09-13-2009 11:18 PM
This message means that your application is doing something in the event thread that it should not be doing. This is not a cosmetic issue - you need to fix the code.
Some common causes:
* performing blocking IO, like HTTP or sockets
* getting a GPS fix
* performing time-consuming operations like lengthy calculations in a loop
09-13-2009 11:45 PM - edited 09-13-2009 11:47 PM
In most case it works fine unless leave it there for long without user interaction, like over the night. So wonder if there any way to chagne the error message from device settings?
09-14-2009 01:00 AM
If you are getting that error message, then you really need to track down what is causing your application to not respond.. The fact that it doesn't happen to you very frequently is irrelevant, because if you deploy the code to many people it will happen more and more frequently and annoy the people who are using your application, you really are serving yourself by tracking down the root cause instead of trying to hide the problem.
Irrespective of the fact that your code has a pretty serious flaw that should be addressed, there is no way to change that particular error message or catch the exception and handle it because that message is by definition only displayed when your application is NOT responding to system and hence would not respond to any notification that the message is about to be displayed.
RegDoug has provided some pretty good common causes of the issue, the solution is to use a thread to do anything that MIGHT take some time.. Any expensive computations should not be executed on the event thread.
09-14-2009 07:50 AM