1
我想在我的android應用程序上使用JPEGImageDecoder接口,但我的應用程序意外停止。以下代碼片段:在Android平臺上使用JPEGImageDecoder
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGImageDecoder;
InputStream in = new FileInputStream(filename);
JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(in);
爲什麼我的應用程序意外停止或我可以在android上使用這些包嗎?
是的,你是對的。我無法在android中使用所有的java庫。所以應用程序停止工作。我如何在執行期間跟蹤eclipse中的錯誤或異常?但是當我編譯開始活動com.example.compare.HelloAndroid設備仿真器-5554工作正常 – AraZZ
您可以使用[adb工具](http://developer.android.com/guide/developing/tools/adb.html)或[eclipse中的DDMS工具](http://developer.android.com/guide/developing/debugging/ddms.html) – Vector