Android create photo album

Do you know how to create a folder in which photos will be saved, and os and other applications should see this folder as a photo album? I need to save photos in a specific album, and if the album does not exist, I need to create it.

thank

+3
source share
1 answer

If you store image files anywhere in the external storage (except for places that also contain the .nomedia file), the media scanner and, therefore, the built-in Gallery application will find them and show them.

, , getExternalStoragePublicDirectory. DIRECTORY_PICTURES .

, API 8. API, getExternalStorageDirectory - .

, , , , .

+3

Source: https://habr.com/ru/post/1790454/


All Articles