嗨,我和 jjil 库一起工作。我没有使用jiil jar文件我添加了源代码。程序没有错误。但是当我添加推送代码eclipse添加尝试catch blog.然后程序运行但我在模拟器上看不到图像。我的代码在这里
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
bmp = BitmapFactory.decodeResource(getResources(), R.drawable.test);
int with=bmp.getWidth();
int height=bmp.getHeight();
RgbImage rgb=new RgbImage(with,height);
bmp.getPixels(rgb.getData(), 0, with, 0, 0, with, height);
Sequence seq=new Sequence();
seq.add(new Rgb3x3Average());
try {
seq.push((RgbImage) rgb.clone());
} catch (Throwable e) {
throw new IllegalStateException(e);
}
try {
rgb=(RgbImage) seq.getFront();
} catch (Throwable e) {
throw new IllegalStateException(e);
}
}
}
还有我的 logcat 错误:
Log cat hatası : 08-09 07:57:14.061: W/ResourceType(63): Resources don't contain package for resource number 0x7f020030
但 R.java 不包含0x7f020030
代码