summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2010-05-19 09:22:21 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-05-19 09:22:21 -0700
commitbea97a897b9102d5d75bcb7a41e02eaff9a7506d (patch)
tree80894ff99019e573f50527729f3659b2f73a9243
parentb39b0f32d1c24e326886d8d27c8ad7dde38e28d0 (diff)
parent2dc7c6c4153380fc64b99d37d763d3f0d1cac04d (diff)
downloadframeworks_base-bea97a897b9102d5d75bcb7a41e02eaff9a7506d.zip
frameworks_base-bea97a897b9102d5d75bcb7a41e02eaff9a7506d.tar.gz
frameworks_base-bea97a897b9102d5d75bcb7a41e02eaff9a7506d.tar.bz2
am 2dc7c6c4: merge from open-source master
Merge commit '2dc7c6c4153380fc64b99d37d763d3f0d1cac04d' into kraken * commit '2dc7c6c4153380fc64b99d37d763d3f0d1cac04d': Add and document .nomedia constant for MediaStore (Issue 6365)
-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 9de5196..54cd3fb 100644
--- a/api/current.xml
+++ b/api/current.xml
@@ -135393,6 +135393,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 c9d125b..40ed980 100644
--- a/core/java/android/provider/MediaStore.java
+++ b/core/java/android/provider/MediaStore.java
@@ -1819,4 +1819,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";
}