summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Ostmo <kostmo@gmail.com>2010-01-30 15:15:39 -0600
committerJean-Baptiste Queru <jbq@google.com>2010-05-17 14:57:06 -0700
commit8ce072d579e0c0e9329b5a3830155de8da7de4cf (patch)
tree3ade3dc9714f1deeeb6d0c147b9c6224701c75e1
parent1152df7e82f1501e72aee1641d028bd7201f6d0b (diff)
downloadframeworks_base-8ce072d579e0c0e9329b5a3830155de8da7de4cf.zip
frameworks_base-8ce072d579e0c0e9329b5a3830155de8da7de4cf.tar.gz
frameworks_base-8ce072d579e0c0e9329b5a3830155de8da7de4cf.tar.bz2
Add and document .nomedia constant for MediaStore (Issue 6365)
Change-Id: Ic9c4a784187cd1264584992411916a5beeefd864
-rw-r--r--api/current.xml11
-rw-r--r--core/java/android/provider/MediaStore.java8
2 files changed, 19 insertions, 0 deletions
diff --git a/api/current.xml b/api/current.xml
index d02c826..eb01451 100644
--- a/api/current.xml
+++ b/api/current.xml
@@ -117955,6 +117955,17 @@
visibility="public"
>
</field>
+<field name="MEDIA_IGNORE_FILENAME"
+ type="java.lang.String"
+ transient="false"
+ volatile="false"
+ value="&quot;.nomedia&quot;"
+ static="true"
+ final="true"
+ deprecated="not deprecated"
+ visibility="public"
+>
+</field>
<field name="MEDIA_SCANNER_VOLUME"
type="java.lang.String"
transient="false"
diff --git a/core/java/android/provider/MediaStore.java b/core/java/android/provider/MediaStore.java
index 062080d..f704e55 100644
--- a/core/java/android/provider/MediaStore.java
+++ b/core/java/android/provider/MediaStore.java
@@ -1695,4 +1695,12 @@ public final class MediaStore {
* Name of current volume being scanned by the media scanner.
*/
public static final String MEDIA_SCANNER_VOLUME = "volume";
+
+ /**
+ * Name of the file signaling the media scanner to ignore media in the containing directory
+ * and its subdirectories. Developers should use this to avoid application graphics showing
+ * up in the Gallery and likewise prevent application sounds and music from showing up in
+ * the Music app.
+ */
+ public static final String MEDIA_IGNORE_FILENAME = ".nomedia";
}