title: Android Bitmap Decode and Arrays
body: <p>The following code is what I have pieced together from articles on here but im really stumped what next to try</p>
  
  <pre><code>ArrayList&lt;Bitmap&gt; bitmapArray = new ArrayList&lt;Bitmap&gt;();
          for (int i = 1; i &lt; 4; i++){
              bitmapArray.add(BitmapFactory.decodeFile("/storage/emulated/0/Pictures/" + Global.svar7));
              canvas.drawBitmap(bitmapArray[i], 0, 0, null);
   }
  </code></pre>
  
  <p>Basically I am trying to draw 3 bitmaps to the canvas one below the other within a loop</p>
  
  <p>This is the nearest I have got with just one error on the <code>Canvas.drawBitmap</code> line saying that <code>bitmapArray[i]</code> has the error</p>
  
  <blockquote>
    <p>The type of the expression must be an array type but it resolved to ArrayList</p>
  </blockquote>
  
  <p>I have search this error on here and can only find examples that include strings and setting controls</p>
  
  <p>Any ideas? can you please point me in the right direction?</p>
  
  <p>Your help is Greatly appreciated</p>
  
  <p>Mark</p>