Reputation: 51
I want to read and understand what is being written to traces.txt file whenever application forcecloses. I am iplementing app, in that I am fetching data from web and set it to imageview and textview . When I run that app , it takes more time to fetch image and set it to imageview inbetween forceclose is happening and saying activity not responding.
Thanks, Vishakha.
Upvotes: 3
Views: 1789
Reputation: 10908
Sounds like you are running your download in the UI thread. Any task that will take more than a few hundred miliseconds should not be performed in the UI thread, and should be moved to either an AsyncTask
or a Thread
& Handler
.
Upvotes: 2
Reputation: 57702
You should look at the output of your LogCat instead of the traces.txt to find the reason. Also "activity not responding" sounds like you fetch the image not with an ASyncTask but on the UI-Thread.
Upvotes: 1