I'm developing an Android 3.1 tablet application.
I need to load and show some images which are stored in local disk. Know UI gets freeze while images are loading and are shown on a gallery and I wondering if there another way to show ui, and when ui is shown, show a ProgressDialog
and then start loading from disk and showing every image.
I know how to start and Asyntask
but I don't know how to do something after ui is show.
I put task.execute()
on OnCreate
and on OnResume
and I see UI freeze.
How can I execute a task after UI is shown?
If you need to take a look to code, please check Gallery images still load very slow and ClassCastException: AbsListView$LayoutParams cannot be cast to Gallery$LayoutParams questions.