Accessing Android DCIM Images
<p>How does one obtain images from the <code>/DCIM/100ANDRO</code> folder?</p>

<p>I have tried</p>

<pre><code> File rootsd = Environment.getExternalStorageDirectory();
        File dcim = new File(rootsd.getAbsolutePath() + "/DCIM/100ANDRO");
        File[] imagelist = dcim.listFiles(new FilenameFilter(){

        public boolean accept(File dir, String name)
        {
            return ((name.endsWith(".jpg"))||(name.endsWith(".png")));
        }
    });
        mFiles = new String[imagelist.length];

        for(int i= 0 ; i&lt; imagelist.length; i++)
        {
            mFiles[i] = imagelist[i].getAbsolutePath();
        }
        mUrls = new Uri[mFiles.length];

        for(int i=0; i &lt; mFiles.length; i++)
        {
            mUrls[i] = Uri.parse(mFiles[i]);   
        }   
</code></pre>

<p>but I got a Null Pointer Exception.</p>
