1

How to perform an action after populating a gridview?

view story
linux-howto

http://stackoverflow.com – I have a gridview populated by thumbnails through a custom ImageAdapter. While populating, if a thumbnail does not exist, I create it from the main image, and add 1 to a counter. After populating the gridview, I want to print with a toast the number of thumbnail created. I added the toast after the creation of the gridview, at the end of the onCreate(), but it shows always 0. So the count is shown before populating the gridview.... And the image adapter has no 'loop' to try to do something at the end. How can I print the info AFTER populating the gridview? Thanks!! L. (HowTos)