In my application I have an option which allows a user to pick an image from gallery and use it in the application. However I would want to restrict the user to select only images with .jpg
extension. How do I achieve that?
So far I've tried the following, but each type of image is at the disposal with this approach:
Intent intent = new Intent(Intent.ACTION_PICK);
intent.setType("image/*");
startActivityForResult(intent, RESULT_LOAD_IMAGE);