title: problem with code to combine two images in android?
body: <p>i am using the below code for combining two images.</p>
  
  <pre><code>    Bitmap pic = BitmapFactory.decodeResource(getResources(), R.drawable.me);
      Bitmap map = BitmapFactory.decodeResource(getResources(), R.drawable.static);
      Canvas comboImage = new Canvas(map);
      Bitmap out1 = null ;
      comboImage.setBitmap(out1);
      comboImage.drawBitmap(pic, 600, 350, null);
  </code></pre>
  
  <p>i am assuming that the i can use the bitmap out1 for getting the final image. but 'comboImage.setBitmap(out1);' line is causing a crash. without this line i am not able to see any images. how can i get the final combined image?</p>