Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!weretis.net!feeder5.news.weretis.net!news.snarked.org!newsfeed.news.ucla.edu!usenet.stanford.edu!newsfeed.berkeley.edu!ucberkeley!i.newsfeed.yosemite.net!newsfeed.yosemite.net!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.java.programmer Subject: Re: Threads and UI in Android Followup-To: comp.lang.java.programmer Date: Mon, 04 Apr 2011 10:16:40 +1200 Organization: Geek Central Lines: 10 Message-ID: References: <8vrrsdF6urU1@mid.individual.net> <8vs005F5tmU1@mid.individual.net> NNTP-Posting-Host: 118-92-92-183.dsl.dyn.ihug.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: lust.ihug.co.nz 1301869001 17252 118.92.92.183 (3 Apr 2011 22:16:41 GMT) X-Complaints-To: abuse@ihug.co.nz NNTP-Posting-Date: Sun, 3 Apr 2011 22:16:41 +0000 (UTC) User-Agent: KNode/4.4.7 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2814 In message <8vs005F5tmU1@mid.individual.net>, Dirk Bruere at NeoPax wrote: > It would seem the answer is in here somewhere > http://developer.android.com/resources/articles/painless-threading.html Seems like AsyncTask is the way to go: it automatically divides up execution between a background thread and the UI thread, and takes care of all the synchronization between the two for you. How much more painless can you get? :)