title: Changing image consumes lot of time
body: <p>Is there any way that I can increase the speed of setting the image? What I am trying to say is suppose I have some hundreds of images and each of those images can be changed automatically or by pressing forward/rewind buttons. (Think of the media player situation where you can forward or rewind as many files, same I am doing with images and some audio behind).</p>
  
  <p>Now, if I continuously keep pressing RW/FW buttons, the layout appears to be black for some time or asks for force close or wait of the application. </p>
  
  <p>Any one know how to increase this speed of reading the bitmap and setting it to the imageview?</p>
  
  <p>Here is a part of my code,</p>
  
  <pre><code>  private void playAudio() {
      msg = new Message();
      msg.obj = (filepath);
      imageHandler.sendMessage(msg);
   } 
  
   private Handler imageHandler = new Handler() {
      public void handleMessage(Message msg) {
  
          try {
              path = (String) msg.obj;
              imagePath = RaconTours.PATH + path;
              imagenamearray = imagePath.split("/");
              currentImagename = imagenamearray[8];
              i++;
              if (!imagePath.equalsIgnoreCase(staticpath)) {
                  isSeekBarChangedManually = false;
                  staticpath = imagePath;
                  Bitmap snoop = readBitmap(Uri.fromFile(new File(filepath)));
                  image.setImageBitmap(snoop);
                  image.setMaxZoom(4f);
             } catch (Exception e) {
                  e.printStackTrace();
            }
       }
  };
  </code></pre>
  
  <p>Hope you get some idea with this code, this is just a small piece of the big cake.</p>
  
  <p>I am not getting the method to solve this. I tried disabling the button also until some action is being performed but that is also of no use.</p>
  
  <p>Any help, cheers</p>