title: How to load BufferedImage in android?
body: <p>I want to load <code>BufferedImage</code> in my application. For that I am using <code>ImageIO</code> but I am getting <code>java.lang.NoClassDefFoundError</code>: </p>
  
  <pre><code>BufferedImage tgtImg = loadImage("ImageD2.jpg"); 
  public static BufferedImage loadImage(String ref) { 
      BufferedImage bimg = null; 
      try { 
          bimg = ImageIO.read(new File(ref)); 
      } catch (Exception e) { 
          e.printStackTrace(); 
      } 
      return bimg; 
  }
  </code></pre>
  
  <p>but i am getting exception: </p>
  
  <pre><code>03-15 18:05:22.051: ERROR/AndroidRuntime(437): java.lang.NoClassDefFoundError: javax.imageio.ImageIO
  </code></pre>