Whats does [position] accomplish?
<p>What does this method accomplish?</p>

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

<p>myRemoteImages is a String list, with 4 different variables. And position is a </p>

<pre><code>int position;
</code></pre>

<p>EDIT: 
  So if there anyway i could take the place of position with possibly something else?</p>

<p>possibly </p>

<pre><code> myRemoteImages{1,2,3,4};?
</code></pre>

<p>EDIT: i am using this to get the the URI for each image in the cahce...</p>

<pre><code>public void getImagesfromCache(){
        ImageAdapter adapter = new ImageAdapter();

    String[] cachImages = myRemoteImages;

    try {   
     URL aURL2 = null;
     aURL2 = new URL(cachImages[position]);
     URI imageCacheUri = null;


     try {
            imageCacheUri = aURL2.toURI();
        } catch (URISyntaxException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

        if(new File(new File(this.getApplicationContext().getCacheDir(), "thumbnails"),"" + imageCacheUri.hashCode()).exists()){
            Log.v("FOUND", "Images found in cache! Now being loaded!");
            String cacheFile = this.getApplicationContext().getCacheDir() +"/thumbnails/"+ imageCacheUri.hashCode();
            ImageView i = new ImageView(this.getApplicationContext());
            FileInputStream fis = null;
            try {
                fis = new FileInputStream(cacheFile);
            } catch (FileNotFoundException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }

            Bitmap bm = BitmapFactory.decodeStream(fis);

             i.setImageBitmap(bm);
             putBitmapInDiskCache(imageCacheUri, bm);

             Log.v("Loader", "Image saved to cache");

             ((Gallery) findViewById(R.id.gallery))
              .setAdapter(new ImageAdapter(MainMenu.this));
        }

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

<p>As you see where position is used, how could i go about another way to return the URL's to get the images in the cache?</p>

<p>Could i possibly store each URI in a SharePreference and fetch them  in onCreate()??</p>
