Bitmap r = imagelist[args.Position].Data;
byte[] arr = getByteFromBitmap(r);
var activity2 = new Intent(this, typeof(FullScreenImageViewActivity));
activity2.PutExtra("FullImage", arr);
StartActivity(activity2);
我得到正确的byte[]
并将其放入intent中。但是它不会把我带到另一个活动,所以下面的代码不会被触发。
byte[] b = Intent.GetByteArrayExtra("FullImage");
Bitmap bitmap = BitmapFactory.DecodeByteArray(b, 0, b.Length);
imageView.SetImageBitmap(bitmap);
https://stackoverflow.com/questions/24955691
复制相似问题