title: How to convert java.awt.Image in Bitmap in android
body: <p>I am trying to convert <code>BufferedImage</code> into bitmap to set bitmap in <code>ImageView</code> but I am getting an error. Is there any way to set <code>java.awt.Image</code> in <code>ImageView</code>?</p>
  
  <pre><code>            BufferedImage bImageFromConvert = null;
              InputStream in = new ByteArrayInputStream(byt);
  
  
              try {
                  bImageFromConvert = ImageIO.read(in);               
                  Image ima = bImageFromConvert;
  
                  Bitmap bmp = Bitmap.;
  
              img.setImageBitmap(bmp);
  
              } catch (IOException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }
  </code></pre>