What keeps Android apps from looking into specific folders ? ((music/pics/vids)) - Nexus One Q&A, Help & Troubleshooting

There's been ongoing discussions for a long time about the best way to "hide" certain media to keep them from showing up in media players.
Every 3rd party App Ive dled for Music/Movies/Pictures has had the same issue of scanning all the media in the SD card.
Is this some inherent mandate in Android ? Or lazy dev programming ?
I have podcast apps that only pick up podcasts. NYC subway map app that only picks up its MAP images...
Yes open up any media player and I see all of these included with my media.
Obviously the function is in there

add a file called .nomedia and Android will not index that directory

The no media trick does not solve the problem.
Android apps are scanning the entire SD for media instead of letting you pick a default directory.
I want to know if this is an android OS problem or an app development problem.

xManMythLegend said:
The no media trick does not solve the problem.
Android apps are scanning the entire SD for media instead of letting you pick a default directory.
I want to know if this is an android OS problem or an app development problem.
Click to expand...
Click to collapse
well i wouldn't call it a problem.. it's just the way the mediascanner works... it scans each directory on the sdcard for media files.
and both the gallery and music app relies on the system mediascanner to fetch pics/videos/music: it's called intended design
There is no way to set a default location for those apps.
3rd party apps can be developed for scanning predefined dirs at the developer's liking.
so for the stock apps the only option is the .nomedia file trick.
note that if u put the .nomedia into a directory, all the sub directories are going to be skipped too.

just rename the folder with a "." in front of the folder name, this makes it a hidden folder and the gallery and what not wont search it.

rastacre said:
well i wouldn't call it a problem.. it's just the way the mediascanner works... it scans each directory on the sdcard for media files.
and both the gallery and music app relies on the system mediascanner to fetch pics/videos/music: it's called intended design
There is no way to set a default location for those apps.
3rd party apps can be developed for scanning predefined dirs at the developer's liking.
so for the stock apps the only option is the .nomedia file trick.
note that if u put the .nomedia into a directory, all the sub directories are going to be skipped too.
Click to expand...
Click to collapse
THANK YOU !!
I somewhat figured this out when I saw this option in Doggcatcher.
This answers my question.

making a folder invisible doesn't help me.
I have ringtones in one folder and when I playback music, I don't want to hear ringtones.

hmmm is there anyway you can adb push the ringtones to the ringtone folder on the system? So you wouldn't need to have it in your sd card?

download MixZing music player. It will let you select which folder on the memory card to scan for music. Select music folder and your done. No more ringtones playback

This .nomedia trick dosnt work 100 percent. I placed it in my music folder and yes it makes the album covers disappear in the gallery but it also makes the music disappear from the music player. I can no longer scroll through artists, songs, etc from within the music player...
I am not running a rooted phone just the stock firmware with the latest Android update.
Hooligan

*Hooligan* said:
This .nomedia trick dosnt work 100 percent. I placed it in my music folder and yes it makes the album covers disappear in the gallery but it also makes the music disappear from the music player. I can no longer scroll through artists, songs, etc from within the music player...
I am not running a rooted phone just the stock firmware with the latest Android update.
Hooligan
Click to expand...
Click to collapse
^bump^
I have the same issue - I don't want to see album covers in the gallery, but I do want the music to show up in my music app - any ideas?
Thanks

.nomedia works 100% and does exactly what it says - NO MEDIA. That includes NO VIDEO, NO AUDIO, NO PHOTOS, NO WHATEVER. All system apps looking for media ignore the folder and all its subfolders.
If the album art is in a subfolder inside the album folder - put .nomedia inside that subfolder. If it's outside with the .MP3s - then .nomedia won't help you.

If you're having issues with album art, you could always embed the album art into the mp3/m4a with an app like dbpoweramp.

One more possible solution:
http://www.google.com/support/forum/p/android/thread?tid=4c95682562b36eca&hl=en

xManMythLegend said:
The no media trick does not solve the problem.
Android apps are scanning the entire SD for media instead of letting you pick a default directory.
I want to know if this is an android OS problem or an app development problem.
Click to expand...
Click to collapse
rastacre said:
well i wouldn't call it a problem.. it's just the way the mediascanner works... it scans each directory on the sdcard for media files.
and both the gallery and music app relies on the system mediascanner to fetch pics/videos/music: it's called intended design
There is no way to set a default location for those apps.
3rd party apps can be developed for scanning predefined dirs at the developer's liking.
so for the stock apps the only option is the .nomedia file trick.
note that if u put the .nomedia into a directory, all the sub directories are going to be skipped too.
Click to expand...
Click to collapse
xManMythLegend said:
THANK YOU !!
I somewhat figured this out when I saw this option in Doggcatcher.
This answers my question.
Click to expand...
Click to collapse
.... what? You argued with the first post, next post said the same thing, then you're thanking them??

r4zv4n said:
^bump^
I have the same issue - I don't want to see album covers in the gallery, but I do want the music to show up in my music app - any ideas?
Thanks
Click to expand...
Click to collapse
Yes, name the files right. AlbumArt.jpg

BTW, after putting the .nomedia, you will need to REBOOT the device for it to take effect and system media scanner will rescan after first start up.

I'm having trouble believing this is "by design" and adding .nomedia to EVERY FOLDER other than my music folder makes absolutely no damn sense... the other way around would make much more sense instead! ".media"
This issue has also been breaking my balls... I don't want my damn ringtones in my media library...

Kraion said:
I'm having trouble believing this is "by design" and adding .nomedia to EVERY FOLDER other than my music folder makes absolutely no damn sense... the other way around would make much more sense instead! ".media"
This issue has also been breaking my balls... I don't want my damn ringtones in my media library...
Click to expand...
Click to collapse
Your ringtones should go into the following folder
/sdcard/media/audio/ringtones
And your notifications should go into the following folder
/sdcard/media/audio/notifications
Those folders are not scanned into your music library. There is no need for .nomedia files on those two folders, otherwise they will not show up in your notifications/ringtones list.
NOTE: /sdcard means your sdcard.... so on the root of your sdcard you should put a folder named media, then inside media folder you should put another folder called audio, and then the ringtones or notifications folder inside audio folder..... This should solve your issue.

zeus_chingon said:
Your ringtones should go into the following folder
/sdcard/media/audio/ringtones
And your notifications should go into the following folder
/sdcard/media/audio/notifications
Those folders are not scanned into your music library. There is no need for .nomedia files on those two folders, otherwise they will not show up in your notifications/ringtones list.
NOTE: /sdcard means your sdcard.... so on the root of your sdcard you should put a folder named media, then inside media folder you should put another folder called audio, and then the ringtones or notifications folder inside audio folder..... This should solve your issue.
Click to expand...
Click to collapse
This works....Did this over a year ago when i first bought my N1...

Related

Music player - location of songs / hiding ringtones

I searched the forums and have not been able to find a workable solution. I am currently on Cyanogen 4.0.4 and have a sdcard in which I have an audio-folder containing all audio resources (as well as some custom ringtones).
I want the Music player to ignore the folder. I tried by placing a ".nomedia"-file in the audio-folder (and it's subfolders) but this causes the phone to loose it's configured ringtones/notification sounds.
There is probably an easy way to hide all UI/ringtones and just let the music player have access to the MP3 folder (where all my songs are)?
move the files to system/sd
thanks. I moved them to /system/media/audio and it works. For anyone doing this, reboot your phone and be wait 1-2 minutes until the files appear in the ringtone selection.
Mine are in a folder called "Ringtones" on my SD card and they have always been ignored by music apps.
Shrivel said:
Mine are in a folder called "Ringtones" on my SD card and they have always been ignored by music apps.
Click to expand...
Click to collapse
Totally worked, though I had it like that before but maybe that was before the OTA update & before this issue started.
Thanks for sharing.

Android and media players

I have searched and searched, but cannot find a solution to this issue. Every media player that I use includes all ringtones and notifications in the search function. I've tried the .nomedia file in my folders, but then the phone doesn't pick up the system sounds in normal use. Is there any media player that I can direct to a specific folder and only that folder for my music?
Morrolan said:
I have searched and searched, but cannot find a solution to this issue. Every media player that I use includes all ringtones and notifications in the search function. I've tried the .nomedia file in my folders, but then the phone doesn't pick up the system sounds in normal use. Is there any media player that I can direct to a specific folder and only that folder for my music?
Click to expand...
Click to collapse
You need to put your ringtones etc. in the correct folder structure.
/sdcard/media/audio/ringtones ui, alarms,notifications the same structure.
The key is media/audio/"media folders"
Try Mixzing
http://www.androlib.com/android.application.com-mixzing-basic-wnA.aspx
bkmo said:
You need to put your ringtones etc. in the correct folder structure.
/sdcard/media/audio/ringtones ui, alarms,notifications the same structure.
The key is media/audio/"media folders"
Click to expand...
Click to collapse
Tried that, but they are still showing up in the search. Mixzing is exactly what I'm looking for. It allows you to point to the specific folders you want. I wish every media did this.
hey I tried the sd method. I deleted the factory ringtones while I was there and put my ringtones that I made in it. When I go back into settings and try to select my ringtones the factory ringtones are in there..

gallery showing unwanted content

does the gallery ALWAYS scan the whole SD card? i hate having pictures belonging to apps displayed in the gallery like asphalt game displays ALL images/videos and in Music app adds sounds. this is really annoying and wish it didnt scan all the sd card for music. are there specific folders that should be placed on the sd card or something? ie. sd:\Media\Videos OR sd:\Videos
Yeah it shows everything in folders that do not have a ".nomedia" file.
see http://androinica.com/2009/08/28/ho...iles-from-appearing-in-android-media-players/
Its not its fault though, the MediaScanner service is what it pulls data from (ContentProvider)
A settings option to disable this or look in just a couple of foldlers would be great.
Adding a .nomedia in a folder with mp3s with the intention of not getting the album art in gallery will have the side-effect of the mp3s not showing up in the music player
I've no problem getting unwanted sounds in the built in Music app by doing this:
(this was mentioned inside the T-Mobile G1 manual)
Put your alarms/notifications/ringtones in the following folders:
\alarms
\notifications
\ringtones
Those sounds will appear in the appropriate list when you choose to adjust those certain sounds, they also don't show up in the Music app. They do show up in 3rd party music app like DoubleTwist Music Player.
Code:
touch /sdcard/folderwithpics/.nomedia
takes literally 10 seconds to fix.
GldRush98 said:
Code:
touch /sdcard/folderwithpics/.nomedia
takes literally 10 seconds to fix.
Click to expand...
Click to collapse
worked great thanks!
.nomedia media works nicely
britoso said:
Yeah it shows everything in folders that do not have a ".nomedia" file.
see http://androinica.com/2009/08/28/ho...iles-from-appearing-in-android-media-players/
Its not its fault though, the MediaScanner service is what it pulls data from (ContentProvider)
A settings option to disable this or look in just a couple of foldlers would be great.
Adding a .nomedia in a folder with mp3s with the intention of not getting the album art in gallery will have the side-effect of the mp3s not showing up in the music player
Click to expand...
Click to collapse
The method posted at Androinica.com using the text file rename method worked nicely for me.
I did however have to search out where all these files were in order to place the .nomedia files properly.

[Q] Audiobooks...

Is there anyway to prevent my audiobook files from being indexed with the rest of the MP3s?
when ever I have music playing a chapter or two will pop up in the middle of the shuffle.
thanks
I'm curious, too, but for a different reason. I have a game (Need For Speed) whose background music files show up in the Music Player lists. Most are really obnoxious rap or hip-hop tunes I would never listen to, but when using the player on random they pop up. I'd like to exclude that folder from being seen by the Music Player app so I never have to see or hear them except when I'm playing the game.
You could put them all in their own folder and put a blank file called ".nomedia" (without quotes) in that same folder. That stops them from showing up in the default music player, but I don't know about 3rd party players.
bryman27 said:
You could put them all in their own folder and put a blank file called ".nomedia" (without quotes) in that same folder. That stops them from showing up in the default music player, but I don't know about 3rd party players.
Click to expand...
Click to collapse
That might work for the OP, but in my case the files need to be in whatever folder the game is looking for or they won't work in the game.
I create a AudioBook folder and placed the .nomedia in there, it works great to keep them out of the media player. The problem is that all the other media players on the market (that I found for free), use the same "collection" of music as the stock player does, so they also did not see the audiobooks.
I found TinyPlayer (free in the market) satisfies my needs really well. The only thing it doesn't do is bookmark. So I have to remember my place if I ever reboot. It uses a folder tree to read your collection, so it ignores the .nomedia and sees my audiobooks. It does not read song tags like the music player does, but that never bothered me. I just arrange each book into a folder, then the player will automatically go to the next music file, and stop at the end of the folder.
Awesome! Ill give it a try. Thanks for the quick responses.
Miami_Son said:
That might work for the OP, but in my case the files need to be in whatever folder the game is looking for or they won't work in the game.
Click to expand...
Click to collapse
Just put the .nomedia file in the folder where the game's music is. It should work in root folder of the game. The stock player does not look in any subfolders if there is a .nomedia in a folder.
^ I'll try it. How do you make a "blank file?"
Miami_Son said:
^ I'll try it. How do you make a "blank file?"
Click to expand...
Click to collapse
I just right click on the desktop in windows 7 and select new > text document and rename it, then copy it to my phone
bryman27 said:
I just right click on the desktop in windows 7 and select new > text document and rename it, then copy it to my phone
Click to expand...
Click to collapse
OK, that's what I thought, but wasn't sure if the file content/type mattered. I guess you just drop the .txt when you rename it.
UPDATE: That did the trick, but I first had to open the file in Astro and rename it without the .txt extension. The stock file manager wouldn't let me do it. Thanks again!
Miami_Son said:
OK, that's what I thought, but wasn't sure if the file content/type mattered. I guess you just drop the .txt when you rename it.
Click to expand...
Click to collapse
Oh sorry forgot that part. I also take out the .txt extension
msinkovich said:
Awesome! Ill give it a try. Thanks for the quick responses.
Click to expand...
Click to collapse
It looks like several others have already helped, but if you wanted yet another option, I've used MortPlayer (there's both a Music and an Audio Book player). It's free on the market, has a widget, and also uses the folder structure so you can sort things that way (I haven't used Tinyplayer, but it sounds similar.)
+ 1 for mortplayer. Great for audio books.
Sent from my SAMSUNG-SGH-I897

How to disable music thumbnails in system image gallery?

Built in gallery is good enough for me but after loading some music with JPG covers gallery started to show them.
Is there a way change this? I've seen tutorials with tip to change folder.jpg (or similar files) to cover.jpg <- not working for me.
What can I do with it?
Go under gallery settings hide/unhide albums
raul6 said:
Go under gallery settings hide/unhide albums
Click to expand...
Click to collapse
It9working but I have a lot of music albums so it's a lot of hiding
I'll probably change gallery app but thank you for your help
I've always used a .nomedia file in the main directory of my music folder which makes the gallery app not see any of the images. Keep in mind, your music player whatever it is, will need to have an option to ignore .nomedia files, or it won't be able to see the music either. I myself use PowerAMP for tons of FLAC files, and this has worked perfectly
On Windows it should be really easy to create, if you have windows file extensions enabled. Just create a blank text file, and rename it to .nomedia. On Linux, it should be even easier. If you have trouble, you can download mine from here.
Let me know if you have any issues
a63548 said:
I've always used a .nomedia file in the main directory of my music folder which makes the gallery app not see any of the images. Keep in mind, your music player whatever it is, will need to have an option to ignore .nomedia files, or it won't be able to see the music either. I myself use PowerAMP for tons of FLAC files, and this has worked perfectly
On Windows it should be really easy to create, if you have windows file extensions enabled. Just create a blank text file, and rename it to .nomedia. On Linux, it should be even easier. If you have trouble, you can download mine from here.
Let me know if you have any issues
Click to expand...
Click to collapse
Poweramp is my main Player.
Cover disappeared from my image gallery .
Thank you for advice !

Categories

Resources