How to hard code 7 int positions?
<p>I am using this method to retrieve some images.</p>

<p>The only problem is is where </p>

<pre><code>aURL = new URL(myRemoteImages[position]);
</code></pre>

<p>Position is i dont know how to get the position for each image in order to set the tag in my code.</p>

<pre><code> i.setTag(mImageURLs[position]);
</code></pre>

<p>As you see myRemoteimages has 7 strings and thats all. How can i hard code. the int Position to just have 7 positions?</p>

<pre><code>public void RetrieveImages() {

    ImageView i = new ImageView(this);
    String[] mImageURLs = {
        urlImage1, urlImage2, urlImage3, urlImage4, urlImage5, urlImage6,
        urlImage7};

    String[] myRemoteImages = {
        imageUrl, imageUrl2, imageUrl3, imageUrl4,
        imageUrl5, imageUrl6, imageUrl7};

    URL aURL = null;

    try {
        aURL = new URL(myRemoteImages[position]);
    } catch (MalformedURLException e2) {
        // TODO Auto-generated catch block
        e2.printStackTrace();
    }
    Log.v("ImageLoader", "Remote images set");
    i.setTag(mImageURLs[position]);                   

    URI imageUri = null;

    SharedPreferences myPrefs = getSharedPreferences("imageUri", 0);
    SharedPreferences.Editor myPrefsEdit = myPrefs.edit();

    // Setting the Uri of aURL to imageUri.
    try {
        imageUri = aURL.toURI();
        myPrefsEdit.putString("uris", imageUri.toString());
        myPrefsEdit.commit();

    } catch (URISyntaxException e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
    }
}
</code></pre>
