File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes Handler... BG thread to UI thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Handler... BG thread to UI thread" Watch "Handler... BG thread to UI thread" New topic

Handler... BG thread to UI thread

UdayK Kumar

Joined: Aug 05, 2009
Posts: 26


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.

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:
subject: Handler... BG thread to UI thread
jQuery in Action, 3rd edition