wchorolque / osmtracker-android

Automatically exported from code.google.com/p/osmtracker-android
GNU General Public License v3.0
0 stars 0 forks source link

Add .nomedia to folders containing voice notes #228

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Collect a few tracks, adding voice notes.
2. Export. (Optional)
3. Trigger media scan on Android: through developer tools, by mounting USB 
storage on a computer and unmounting, by rebooting. Not sure if this needs to 
be done manually, and which of these will trigger a media scan.
4. Fire up the media player of your choice and listen to some music in shuffle 
mode.

What is the expected output? What do you see instead?
Expected: Media player plays music
Instead: Media player plays a mix of music and the voice note you took 
previously.

What version of the product are you using (See "About" screen)?
0.6.5. Earlier versions have the same issue.

Make/model of your device, and Android version?
Nexus S, Cyanogenmod 10.1.3-RC2. Pretty much all earlier Android versions I 
have used are affected (since at least Froyo).

Please provide any additional information below.
The media scanner will ignore folders with .nomedia in them, so this file 
should be placed into every folder that contains voice notes. As far as I found 
out, this needs to be done for each subfolder separately.

Original issue reported on code.google.com by mich...@vonglasow.com on 17 Sep 2013 at 3:09

GoogleCodeExporter commented 9 years ago
Correction: .nomedia in a folder will keep Media Scanner out of the entire 
folder hierarchy.

However, when adding .nmoedia to a folder already indexed by Media Scanner, the 
files in it will remain in the index and continue to be picked up by the media 
player. (Not sure what happen to files created after adding .nomedia.) A 
workaround is needed: after adding .nomedia, rename the folder, trigger a media 
scan, then rename the folder back.

Conclusion: OSMTracker should place .nomedia in the data dir before creating 
any files. Upgrading users may need to be instructed to do the hack described 
above.

Original comment by mich...@vonglasow.com on 18 Sep 2013 at 1:40

GoogleCodeExporter commented 9 years ago
rebooting the device also triggers reindexing. anyway, no update on this issue 
whatsoever?

Original comment by jose1...@gmail.com on 30 Jun 2014 at 11:02