title: display image from byteArray
body: <p>I have a <code>Main</code> class with has <code>onCreate()</code> method. in that method i have made the MapFile class' object.and called its <code>readFile()</code> and <code>readIndex()</code> methods. in <code>readIndex()</code> method i call another class named <code>MapTile</code> where i read the images tiles from my binary file and there i have to display my image.</p>
  
  <p>Question is, how can I display an image without putting my code into <code>onCreate(Bundle savedInstanceStare)</code> method? I am trying this way but on first line it gives me <code>NullPointerException</code>.</p>
  
  <pre><code>ImageView image = (ImageView) findViewById(android.R.id.icon);           
  Bitmap bMap = BitmapFactory.decodeByteArray(imageTile, 0, imageTile.length);
  image.setImageBitmap(bMap);
  </code></pre>