Sony Xperia XZ2 Compact - Stop Photos or Music files being indexed

Android 8 (Oreo)
Phone: Sony Xperia XZ2 Compact
Factory OS: Android 8 (Oreo)

Have you updated your Operating System?
Then view tips for the most recent OS version(s): Android 9 (Pie)
Or view tips for all Android versions

Stop Photos or Music files being indexed

To stop the Photo App or the Music player from indexing your files, place a blank text file called .nomedia in the folder containing your photos or music.

The best way to do this is to connect your device to a PC and then navigate to the relevant folder via your PC.

 
Looking for more tips?
We have 143 tips for the Sony Xperia XZ2 Compact.