java - Use of JPEGImageDecoder on Android platform -



java - Use of JPEGImageDecoder on Android platform -

i'm trying utilize jpegimagedecoder interface on android application, application stops unexpectedly. next code snippet:

import com.sun.image.codec.jpeg.jpegcodec; import com.sun.image.codec.jpeg.jpegimagedecoder; inputstream in = new fileinputstream(filename); jpegimagedecoder decoder = jpegcodec.createjpegdecoder(in);

why application stops unexpectedly or can utilize these packages on android?

don't think can utilize packages on android. android uses bitmapfactory (android.graphics.bitmapfactory) handle image decoding. stack trace show?

java android jpeg sun

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -