如何在活动之间传递图像,可绘制类型?
我尝试这样:
private Drawable imagen;
Bundle bundle = new Bundle();
bundle.putSerializable("imagen", (Serializable) unaReceta.getImagen());
Intent myIntent = new Intent(v.getContext(), Receta.class);
myIntent.putExtras(bundle);
startActivityForResult(myIntent, 0);
但是它报告了我的执行情况:
java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable
杨__羊羊
不负相思意
相关分类