Advertisement
iam9_91

Intent Implicit

Jun 17th, 2020
1,226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.22 KB | None | 0 0
  1. static final int SELECT_PICTURE = 1
  2.  
  3. Intent galleryIntent = new Intent(Intent.ACTION_PICK);
  4. galleryIntent.setType("image/*");
  5. startActivityForResult(Intent.createChooser(galleryIntent, "Select Picture"), SELECT_PICTURE);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement