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

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -