In the ImageAdapter class of this tutorial, http://developer.android.com/resources/tutorials/views/hello-gridview.html
I would like to create and populate an array using a for loop. But it seems no matter where I place it, it causes an error.
For example, under private Context mContext;
I put in the following and it causes an error. I think the loop is good, I'm just not sure where I can put it.
private String[] myString;
for (int number = 0; number <= 12; number++) {
myString[number] = "image" + number;
}