title: Outofmemory error in bitmap runtime exception
body: <p>i am displaying my images from assests/image folder ,
   but this code is not working . this code display images from assets folder in gallery . i am using gallery prefine library or jar file. </p>
  
  <p>please expert check it . thank u </p>
  
  <pre><code>AssetManager assetManager = getAssets();
      String[] files = null;
      try {
          files = assetManager.list("image");
      } catch (IOException e) {
          Log.e("tag", e.getMessage());
      }
  
      for(String filename : files) {
          System.out.println("File name =&gt; "+filename);
          InputStream in = null;
          try {
              ImageViewTouch imageView = new ImageViewTouch(Rahul.this); 
              imageView.setLayoutParams(new Gallery.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
            final Options options = new Options();
              options.outHeight = (int) scaleHeight; 
              options.outWidth = (int) scaleWidth;   
              options.inScaled = true;
              options.inPurgeable = true;
              options.inSampleSize = 2;
             in = assetManager.open("image/"+filename); 
             Bitmap bit=BitmapFactory.decodeStream(in);
  
            imageView.setImageBitmap(bit);
  
                } catch(Exception e) {
              Log.e("tag", e.getMessage());
          }
      }
      gallery.setAdapter(arrayAdapter);
  </code></pre>