android - Load heavy UI in onPostExecute -


i'm trying load heavy ui in asynctask onpostexecute() method approximately takes 5 seconds show up.

also, make runnable thread , post ui through runonuithread() still takes 5 seconds show up, idea how optimize code?

first off- onpostexexute runs in ui thread. no need call runonuithread, slow down.

my other big suggestion precalculate lot of stuff in doinbackground, rather doing in onpostexecute. won't decrease total time display, taking time. if need more speedup that, run in profiler debugger turned off , see whats taking time.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -