문제

ImageIo.read() doesn't work.the error tells that ImageIo class doesn't contains read method.like

    ByteArrayInputStream bais=new ByteArrayInputStream(logo);
    BufferedImage bimage=ImageIO.read(bais);

any one help me?

도움이 되었습니까?

해결책

ImageIo is part of JRE not directly to android, so you may face problem!!

visit http://docs.oracle.com/javase/7/docs/api/javax/imageio/ImageIO.html

and we can say that Android is not stand art java - it lacks certain classes. what can be suggested is you can go for similar approaches and try to find out some similar straight solution or library project which can help you .

다른 팁

Imaging libraries are not a part of Android development kit. if you want to display images in android you should use BitMap and BitMap Factory classes provided with Android.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top