android - Speeding up activity loading -


i know has been asked many times never understood of answers.

i have activity , doing lot of work on oncreate() hence takes while load activity. have seen, people telling use async tasks. have put online loading async tasks (started in oncreate) sql database operations done on main thread since need load results lists, etc. of these done onclicks of buttons etc.

is there way speed loading of activity up? can load ui elements on separate thread activity created?

by sounds of it, activities doing in oncreate method. try moving of activities setup (including loading images etc) asynctaks. should reduce load time of activities.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -