aspose file tools
The moose likes Android and the fly likes Handler... BG thread to UI thread Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "Handler... BG thread to UI thread" Watch "Handler... BG thread to UI thread" New topic
Author

Handler... BG thread to UI thread

UdayK Kumar
Greenhorn

Joined: Aug 05, 2009
Posts: 26

Hi,

Can anyone help me to understand the below scenario.


My BG thread process the get results the ArrayList. The same values should send to UI(Main) thread. How to possible using Android Handler.

Means Sending ArrayList values from BG thread to UI thread.


Thanks
Uday
Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252
I havent used Handler.
But you can look for AsyncTask or runOnUiThread is also a good option.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Handler... BG thread to UI thread
 
Similar Threads
Controlling location update interval
iterate list issue...
Thread adding doubles to an ArrayList in a different class
ProgressDialog.show dosent show ProgressBar Immediately
calling setEnabled throws exception