Guest User

EXTRA_STREAM

a guest
Jan 19th, 2015
237
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ImageView image = (ImageView) findViewById(R.id.img);
  2. Intent intent = getIntent();
  3. String action = intent.getAction();
  4. if (intent.ACTION_SEND.equals(action)){
  5.     image.setImageURI((Uri) getIntent().getExtras().get(Intent.EXTRA_STREAM));
  6. }
RAW Paste Data