• Post Reply Bookmark Topic Watch Topic
  • New Topic

Updating an arrayAdapter outside of UI thread

 
Joris Bolsens
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know you are not able to do this, but when I tried the runOnUIThread that did not work (crashed app)
I am now trying it a different way (returning the items I want) but this is causing my app to hang.

All I want is to retrieve email subjects and put them in a list. What am I doing wrong?

myActivity.java:


JavaMail.java




LogCat


Thanks all.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!