Storing captured image or an image picked from a gallery in internal storage using file provider android.
Android Camera intent not working in android nougat and above. File provider used to capture an image and pick an image from the gallery. Capture image from the camera and stored in the internal storage in android nougat and above. It will show you how to use File Provider when you set your target SDK as 24 and change following. 1) Create file_path.xml <? xml version= "1.0" encoding= "utf-8" ?> < paths xmlns: android = "http://schemas.android.com/apk/res/android" > < external-path name= "external_files" path= "." /> </ paths > 2) In AndroidMainfest inside application tag //Here authoitties is unique identification of the fileprovider < provider android :name= "android.support.v4.content.FileProvider" android :authorities= "${applicationId}.fileProvider" android :exported= "false" android :grantUriPermissions= "true" > ...