title: NullPointerException while setting Image in imageView from Bitmap?
body: <p>I am Using APK Expansion File from <a href="http://developer.android.com/guide/market/expansion-files.html" rel="nofollow">http://developer.android.com/guide/market/expansion-files.html</a></p>
  
  <p>CODE :</p>
  
  <pre><code>String[] path= getAPKExpansionFiles(this,2,0);
  ZipResourceFile expansionFile;
  try {
          expansionFile = new ZipResourceFile(path[0]);
          InputStream fileStream = expansionFile.getInputStream("assets/Tablet/Chester_the_cat/chester_the_cat_2.png");
          Bitmap bit=BitmapFactory.decodeStream(fileStream);
              iv_new=(ImageView)findViewById(R.id.iv_new);
              iv_new.setImageBitmap(bit);
  </code></pre>
  
  <p>and m getting this NullPointerException in this line</p>
  
  <pre><code>   iv_new.setImageBitmap(bit);
  </code></pre>
  
  <p>and in XML my ImageView is :</p>
  
  <pre><code> &lt;ImageView android:id="@+id/iv_new"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"/&gt;
  </code></pre>