Skip to content Skip to sidebar Skip to footer

I Can't Save My Bitmap To The Gallery In Android?

I'm trying to save my edited image into Gallery from where user can access it. I have used 'Add the photo to the Gallery' from reference: https://developer.android.com/training/cam

Solution 1:

The File Will be Displayed only if after a Successful Completion of media Scanner.

Note

  1. Save the File To the External Storage . Now the Path is Android Data Folder. Most of the time the Files inside the data Folder wont be Scanned By Media Scanner. For that use Environment.getExternalStorageDirectory().getAbsolutePath()+"/Pictures/Foldername/" as Folder Path

    Environment.getExternalStorageDirectory().getAbsolutePath() will Return the ExternalStorge as the Path

  2. Run Media Scanner

Also Refer Trigger Media Scanner Programattically

Post a Comment for "I Can't Save My Bitmap To The Gallery In Android?"