Android Studio: Displaying a list of pictures inside a folder?
<p>Alright, I am trying to display 170+ jpg images on the screen. So far my issue is having the app find the images and add them to a list. (I put all the images in the <code>mipmap-xxhdpi</code> folder because that seemed to be the only place where ImageView could find them)</p>

<p>Here is my code:</p>

<pre><code>    ArrayList img = new ArrayList&lt;Image&gt;();
    File folder = new File("@mipmap");
    File[] fille = folder.listFiles();
    for (int i = 0; i&lt; fille.length; i++) {
        img.add(fille[i]);
</code></pre>

<blockquote>
<pre><code>    ListAdapter picAdapt = new ArrayAdapter&lt;Image&gt;(this, android.R.layout.simple_gallery_item, img);
    ListView picListView = (ListView) findViewById(R.id.gallery);
    picListView.setAdapter(picAdapt);
</code></pre>
</blockquote>

<p>I think the app is trying to find the picture in a directory on the android device instead inside the actual APK, but then again I have no idea. I am brand new to Java and Android Studio; the only prior knowledge I have is Python. </p>

<p>All help is appreciated, Thanks!</p>

<p>UPDATE: After googling for a while longer, I started to wonder whether if I could append an item from a <code>File[]</code> Array into an <code>Image[]</code> Array. Maybe the app found the pictures but couldn't append them to the list so the list stayed empty? How would I do this?</p>