Skip to content

Instantly share code, notes, and snippets.

@Den-Rimus
Created May 29, 2015 09:58
Show Gist options
  • Save Den-Rimus/ad4fdbe0ea8f0657de1a to your computer and use it in GitHub Desktop.
Save Den-Rimus/ad4fdbe0ea8f0657de1a to your computer and use it in GitHub Desktop.
Intent photoPickerIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
photoPickerIntent.setType("image/*");
// consider time while using camera as Shopaholic's foreground
ShopaholicApp.activityResumed();
startActivityForResult(photoPickerIntent, INTENT_REQUEST_CODE_SELECT_PHOTO);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment