Bundle extras = getIntent().getExtras(); byte[] b = extras.getByteArray("picture"); Bitmap bmp = BitmapFactory.decodeByteArray(b, 0, b.length); ImageView image = (ImageView) findViewById(R.id.imageView1); image.setImageBitmap(bmp);
Bundle extras = getIntent().getExtras(); byte[] byteArray = extras.getByteArray("picture"); Bitmap bmp = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length); ImageView image = (ImageView) findViewById(R.id.imageView1); image.setImageBitmap(bmp);
Bundle extras = getIntent().getExtras(); byte[] byteArray = extras.getByteArray("picture"); Bitmap bmp = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length); ImageView image = (ImageView) findViewById(R.id.imageView1); image.setImageBitmap(bmp);
@Override protected boolean restoreState(Bundle savedState) { byte[] bytes = savedState.getByteArray(FRIENDS_KEY); if (bytes != null) { selectedUsers = restoreByteArray(bytes); setUsersText(); return true; } return false; }
@Test public void byteArray() { byte [] arr = new byte[] { 12, 24 }; bundle.putByteArray("foo", arr); assertThat(bundle.getByteArray("foo")).isEqualTo(arr); assertThat(bundle.getByteArray("bar")).isNull(); }
float scaleFactor = 1.0f; if (bundle != null) { byte[] compressedBitmap = bundle.getByteArray(DecodeThread.BARCODE_BITMAP); if (compressedBitmap != null) { barcode = BitmapFactory.decodeByteArray(compressedBitmap, 0, compressedBitmap.length, null);
when(bundle.getByteArray(anyString())).thenAnswer(get);
Bundle extras = getIntent().getExtras(); byte[] byteArray = extras.getByteArray("picture"); Bitmap bmp = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length); ImageView image = (ImageView) findViewById(R.id.imageView1); image.setImageBitmap(bmp);
Bundle extras = getIntent().getExtras(); byte[] byteArray = extras.getByteArray("picture"); Bitmap bmp = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length); ImageView image = (ImageView) findViewById(R.id.imageView1); image.setImageBitmap(bmp);
assertArrayEquals(originalBundle.getBooleanArray(BOOLEAN_ARRAY_KEY), cachedBundle.getBooleanArray(BOOLEAN_ARRAY_KEY)); assertEquals(originalBundle.getByte(BYTE_KEY), cachedBundle.getByte(BYTE_KEY)); assertArrayEquals(originalBundle.getByteArray(BYTE_ARRAY_KEY), cachedBundle.getByteArray(BYTE_ARRAY_KEY)); assertEquals(originalBundle.getShort(SHORT_KEY), cachedBundle.getShort(SHORT_KEY)); assertArrayEquals(originalBundle.getShortArray(SHORT_ARRAY_KEY), cachedBundle.getShortArray(SHORT_ARRAY_KEY));
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_accept_not_accept); Bundle extras = getIntent().getExtras(); byte[] byteArray = extras.getByteArray("picture"); bitmap = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length); ((ImageView)findViewById(R.id.ivForAcceptPicture)).setImageBitmap(bitmap); }
public byte[] getBytes(String key){ if (mBundle != null) { return mBundle.getByteArray(key); } return null; }
setContentView(R.layout.full_screen); full_view = (ImageView)findViewById(R.id.full_view); Bundle bundle=getIntent().getExtras(); byte[] image= bundle.getByteArray("image"); Bitmap theImage = BitmapFactory.decodeByteArray(image, 0, image.length); Bitmap resized = Bitmap.createScaledBitmap(theImage,width , height, true); full_view.setImageBitmap(resized); width = full_view.getWidth(); height = full_view.getHeight();
Bundle extras = getIntent().getExtras(); byte[] food = extras.getByteArray("picture"); Bitmap fo = BitmapFactory.decodeByteArray(food, 0, food.length); mHeaderLogo = (ImageView) findViewById(R.id.header_logo); //ImageView image = (ImageView) findViewById(R.id.header_logo); mHeaderLogo.setImageBitmap(fo);
Bundle extras = getIntent().getExtras(); byte[] byteArray = extras.getByteArray("picture"); Bitmap bmp = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length); ImageView image = (ImageView) findViewById(R.id.imageView1); image.setImageBitmap(bmp);
Bundle extras = getIntent().getExtras(); byte[] b = extras.getByteArray("picture"); Bitmap bmp = BitmapFactory.decodeByteArray(b, 0, b.length); ImageView image = (ImageView) findViewById(R.id.imageView1); image.setImageBitmap(bmp);
Bundle extras = getIntent().getExtras(); byte[] byteArray = extras.getByteArray("picture"); Bitmap bmp = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length); ImageView image = (ImageView) findViewById(R.id.imageView1); image.setImageBitmap(bmp);
Bundle extras = getIntent().getExtras(); byte[] byteArray = extras.getByteArray("picture"); Bitmap bmp = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length); ImageView image = (ImageView) findViewById(R.id.imageView1); image.setImageBitmap(bmp);
Log.i("Subtitle : bitmap"); if (mOnTimedTextListener != null) mOnTimedTextListener.onTimedTextUpdate(mData.getByteArray(MEDIA_SUBTITLE_BYTES), msg.arg1, msg.arg2);
public AdRecord(final Parcel in) { final Bundle b = in.readBundle(getClass().getClassLoader()); mLength = b.getInt(PARCEL_RECORD_LENGTH); mType = b.getInt(PARCEL_RECORD_TYPE); mData = b.getByteArray(PARCEL_RECORD_DATA); }