ImageIntent extends ContentIntent<ImageIntent> { @NonNull public static Intent createGalleryIntent() { return new Intent(Intent.ACTION_GET_CONTENT).setType(MimeType.IMAGE); }  @NonNull static Intent createGalleryIntent(); @NonNull static Intent createCameraIntent(); @NonNull static Intent createCameraIntent(@Nullable final File outputFile); @NonNull static Intent createCameraIntent(@Nullable final Uri outputUri); @Nullable static File createImageFile(); @Nullable static File createImageFile(@NonNull final String fileName); @SuppressWarnings("ConstantConditions") @Override ImageIntent withDefaultHandlers(@NonNull final Context context); @Override ImageIntent input(@Nullable final Uri uri); @Override ImageIntent output(@Nullable final Uri uri); static final int REQUEST_CODE_GALLERY; static final int REQUEST_CODE_CAMERA; static final String IMAGE_FILE_NAME_FORMAT; }
@Test public void testCreateGalleryIntent() { final Intent intent = ImageIntent.createGalleryIntent(); assertThat(intent, is(notNullValue())); assertThat(intent.getAction(), is(Intent.ACTION_GET_CONTENT)); assertThat(intent.getType(), is(MimeType.IMAGE)); }