How do you send a bitmap image from an intent?

Ngoc Hue

New member
How do you send a bitmap image from an intent?
Answer
Pass Bitmap Data Between Activities in Android
  1. Intent anotherIntent = new Intent(this, anotherActivity. class); startActivity(anotherIntent); finish();
  2. Intent anotherIntent = new Intent(this, anotherActivity. class); anotherIntent. …
  3. ByteArrayOutputStream bStream = new ByteArrayOutputStream(); bitmap. compress(Bitmap. …
  4. Bitmap bmp; byte[] byteArray = getIntent().
15 мар. 2014 г.
 

Tìm kiếm

Back
Top