Intent resultIntent = new Intent();
Bundle bundle = new Bundle();
bundle.putString("result", resultString);
bundle.putParcelable("bitmap", barcode);
resultIntent.putExtras(bundle);
我们有时会用intent来传递Bitmap对象,但是如果传递的bitmap超过40K则会被毙掉,所以在传递时尽量传递图片路径或者就不传递bitmap
Intent不能传递超过40K的bitmap
最新推荐文章于 2019-09-25 09:35:04 发布