Q: How to random gridview in android code Is there anyway to customize to random image in GridView from this link
I am working on it and it give a very good result, but the image in gridview was not randomly. Can anyone guide me some techniq to customize this?
Thank you!

A: I assume you are doing something like this:
Integer[] images = {
            R.drawable.1, R.drawable.2,
            R.drawable.3, ... ,R.drawable.n
    };

now you have an array of references to your drawables.
List<Integer> imagesArrayList = new ArrayList<Integer>(Arrays.asList(images))

this would convert your array to ArrayList
Collections.shuffle(imagesArrayList);

from doc:

Collections.shuffle : Randomly permutes the specified list using a
  default source
  of randomness.

Then in getView method (I assume you are using custom adapter like in this example)
int[] tempArrayList = Ints.toArray(imagesArrayList);
imageView.setImageResource(tempArrayList[position]);

P.S. Haven't compiled it, so there might be errors
