AsyncTask : all onProgressUpdate() done at the end of task

by Romain Guy » Sun, 07 Mar 2010 03:12:59 GMT

Sponsored Links

Why are you doing Looper.prepare(); in doInBackground()? Also, what
you are seeing would indeed happen if you are calling get() somewhere
on the UI thread, or otherwise blocking the UI thread after calling
execute() on your task.


AsyncTask : all onProgressUpdate() done at the end of task

by Nicolas H » Tue, 09 Mar 2010 23:28:03 GMT

  am doing Looper.prepare(); in doInBackground() because without that,
it seems that exceptions are not catched.
Without that, if I remember, the application simply crashes...

The last call on my UI thread is thread.execute() (during
onCreate()) , so it seems that no get() is called, even if I don't
know what this
function (get) should do.

I changed my code and instead of loading serialized objects, I build
the dictionary and create objects in the background thread.
And the progress bar is correctly filled when each Family object is

For user it takes about the same time as unserialization (I have not
measured exactly), but the apk is about 850ko (due to big xml files)
contrary to 350ko with file containing serialized objects.

On 6 mar, 20:12, Romain Guy <> wrote:
> >

Sponsored Links

Other Threads

1. Google Nexus One 2n

As subject, karena udah merasa cukup main2nya dengan N1, mau dilepas aja :D
Kebetulan untuk Android  masih ada yang bisa dimainin: HTC Eris dan HTC Hero
Sprint hehhehe....
Kondisi mulus (kira2 kayak paha Tamara Blezinsky :D) serta full set.

N1 nya sudah terpasang screen protector Anti Glare, selama saya pegang belum
pernah dipake buat nelpon/sms :D
Sudah rooted dan pake custom mod Cyanogen, Apps2SD dan beberapa
aplikasi keren :)

Yang minat monggo japri saya ke ** atau nomor telpon di
Mods dan Admin, thank you jalumnya :)

Deska Affif
088-1100-GAYA (4292) | Y!: GadgetGaya  |  Light Up Your Gadget!

"Indonesian Android Community [id-android]" 

2. Must Have Application

Mohon Suhu-suhu mau berbagi info 15 Must Have Application buat Android yang 
sudah di instal di Android Suhu-suhu, mau nyontek nih :) kalo bisa 10 aplikasi 
dan 5 games yang free, kalo berbayar tolong dikasih tanda :)

{*filter*}tara ini di N1 sudah terinstal :
Advance task killer
Astro Filemanager
Babbler Lite
CacheMate demo
ColorDict (sangat bagus)
Dolphin Browser
Handcent SMS
Home++ menu
Mabilo Wallpaper
Note Everything
World tour

Game cuman ada 2
Paper Toss
Wixel Lite

Thanks in advance
Powered by Telkomsel BlackBerry

"Indonesian Android Community [id-android]" 

Join:  http://www.***.com/ 
ID Android Developer:  http://www.***.com/ 
ID Android Surabaya:  http://www.***.com/ 
ID Android on FB:  http://www.***.com/ 

To unsubscribe, reply using "remove me" as the subject.

3. Copy&Paste

4. BUG in SQLite? Cannot use Long Integers in Cache Database

5. Minta file mount usb

6. settingan yahoo email di magic

7. candu... candu...