Problem analysis:
Pictures and music must be recorded by the system's media service before they can be used in the gallery and music.
solution:
1. The first character of any layer (including the file itself) of the path where the file is located is the English ".".
For example: ".photo.jpg" and "folder/.folder/photo.jpg" will not be included.
2. There is a file/folder named ".nomedia" in any layer of the path where the file is located.
Example: "Photo.jpg" is stored in a folder, if this folder contains a file (folder) named ".nomedia", all files in this folder will not be included, including "photo.jpg" .
3. The file name is too long, and the Android media storage cannot handle it correctly. It is recommended that the user rename the file.
4.To clear the data of the gallery software, the operation method is:
Settings->>Apps->>Gallery->>Clear Data.
5. It should be noted that if there is an error in the picture file itself, it will also cause the picture to be unable to be opened. It is recommended that the user open other picture files because of file errors.