14
votes
Accepted
Can .nomedia be a folder?
Yes. If a folder contains another folder that is named .nomedia, the parent folder will be ignored.
The relevant code is here (note to the confused: File doesn't necessarily be a regular file - in ...
5
votes
Accepted
Why does MTP show wrong directory location?
What is Content Provider?
It seems to be a problem related to Media Providers. As the name suggests, they provide a database of available media in a more organized way to other apps as the Contacts ...
5
votes
What is the purpose and function of the "Media Storage" application and the media scanner?
Media Storage, package name com.android.providers.media, is an implementation of MediaStore:
The Media provider contains meta data for all available media on both internal and external storage ...
4
votes
Manually trigger MediaScanner to scan files on Internal Storage on Nougat/Oreo
Note: It is possible the following commands do not work out for you with just USB debugging / shell (uID 2000) user. In that case, you must have root access to make them work.
Before KitKat, this ...
3
votes
Music stored on the External SD Card is removed from playlists at reboot
After more experimentation, I've made a breakthrough. Ultimately, this all happens cause Android's Media Scanner will scan the internal SD for media at startup. When it finds Playlist files it ...
3
votes
Accepted
Is it possible to have a media folder inside a .nomedia folder?
Oh I get him now. If the .nomedia file exists in a folder containing the folders you have it will hide files in all those directories. For example having a .nomedia on /sdcard will definitely hide the ...
2
votes
Accepted
Making mediaserver immediately scan a file created through ADB
Okay, it seems the answer is trivial. My fingers don't have to lose the comfort of typing adb push, yet I would be able to cause media scanner scan my pushed file, automatically and immediately. Here'...
2
votes
Hide media on external sd card, lollipop and above
by renaming a file from filename.txt to .filename.txt (add a dot "." before the name) you will hide the file. I.e. it will not show up on any file explorer, (unless it is set to show hidden files.)
...
2
votes
Force specific folder to be added to Photos?
Delete the .nomedia file to force media scanning (
restart the phone. It is then that media scanner database is re indexed )
and it should appear in Google photos folder list for sync.
If you don't ...
2
votes
How to permanently disable mediaserver service?
I am not a programmer by any means, but Adups might be the issue. They were in the news today for installing software on phones that dumps data from your phone regularly into a Chinese server. Heres ...
2
votes
Streaming audio files from SMB (or AFP, or NFS) share to DLNA receiver without resampling
If anyone else is seeking for a similar solution, I think doubleTwist player uses a combination of android's media scanner and it's own directory scanner to import music. So the method with mounting ...
1
vote
/system/bin/mediaserver and /system/bin/drmserver dont want these but Android disagrees
This is a really old question but I have an answer for anyone wondering.If you do not care about playing DRM-protected content, just replace /system/bin/drmserver with an executable file that does ...
1
vote
What are the best 3D scanning mobile apps?
In order to do true 3D scanning you'll need a phone or tablet with a depth scanning technology. Without it, the sizes and/or positions won't be correct.
Google Tango (was Project Tango) delivers 3D ...
1
vote
Accepted
Hide media on external sd card, lollipop and above
I believe SECRECY will do what you want; I haven't used it for a while, but from what I remember it encrypts files on the SD card and doesn't need root.
Note: the app is no longer available on Play ...
1
vote
.nomedia file not hiding newly created images. Solution?
I'm having the same problem in android 6.0 but only in the pictures and movies folders and subfolders. My solution is to remove a recreate the .nomedia after each new download! However if the folder ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
media-scanner × 61media-files × 13
music-player × 8
gallery × 6
external-sd × 5
file-system × 5
storage × 4
music × 4
samsung-galaxy-s-2 × 3
photos × 3
file-management × 3
google-play-music × 3
applications × 2
adb × 2
cyanogenmod × 2
root-access × 2
4.4-kitkat × 2
samsung-galaxy-s-3 × 2
battery × 2
2.3-gingerbread × 2
4.1-jelly-bean × 2
boot × 2
4.2-jelly-bean × 2
images × 2
performance × 2