my android application shows an error of keydispatching timeout. i does’nt happen every time when i touch the screen. i happens after some seconds of application starting. What will be the reason for this?? I used 4 imageviews,oncreate(). When i touch the imageview, it has to download images from the server through GPRS. I implemented main thread’s full operations in onCreate() method. Is my probem with this?? Should i implement onStart(),onResume(),onPause(),onRestart() and onDestroy() methods??
my android application shows an error of keydispatching timeout. i does’nt happen every time
Share
You can’t do processing that takes any notable degree of time (such as downloading something from the net) in the UI thread, which is where all of those onWhatever methods are called.
You must move this part of the functionality to a service or do it in a looper thread.