title: Load all images from folder in Android
body: <p>I would like to load all images in a folder without knowing the names of the files and store them into a Integer vector - at runtime.</p>
  
  <p>In fact, i need the same as it is done in this example:
   <a href="http://developer.android.com/resources/tutorials/views/hello-gridview.html" rel="nofollow">http://developer.android.com/resources/tutorials/views/hello-gridview.html</a>
  But at runtime and without knowing the names of the files.</p>
  
  <p>Any help?</p>
  
  <hr>
  
  <p>After your answers i know how to do it... but i dont know how to go on in the same way as the example:</p>
  
  <p>How could i keep the images in an integer array instead of an drawable array or similar?. Here is my try with drawable: DrawArray[i] = Drawable.createFromPath(fileArray[i].getPath());
  But i would like to do it with integer to fit with the link above!</p>
  
  <p>Thanks in advance</p>
  
  <hr>
  
  <p><strong>GENERAL SOLUTION:</strong> <a href="http://www.anddev.org/viewtopic.php?t=575" rel="nofollow">http://www.anddev.org/viewtopic.php?t=575</a></p>