OSDN Git Service

add definition for Mms.TempStorage content uri and filename.
authorWei Huang <weih@google.com>
Wed, 23 Sep 2009 09:42:47 +0000 (02:42 -0700)
committerWei Huang <weih@google.com>
Wed, 23 Sep 2009 16:51:49 +0000 (09:51 -0700)
Change-Id: Idfab085f2ecc8c7c835208805ccf1d94d6380780

core/java/android/provider/Telephony.java

index c637e02..e219184 100644 (file)
@@ -1481,6 +1481,21 @@ public final class Telephony {
             public static final String SENT_TIME = "sent_time";
         }
 
+        public static final class ScrapSpace {
+            /**
+             * The content:// style URL for this table
+             */
+            public static final Uri CONTENT_URI = Uri.parse("content://mms/scrapSpace");
+
+            /**
+             * This is the scrap file we use to store the media attachment when the user
+             * chooses to capture a photo to be attached (and could be used for other media types
+             * if necessary). We pass {#link@Uri} to the Camera app, which streams the captured
+             * image to the uri. Internally we write the media content to this file.
+             */
+            public static final String SCRAP_FILE_PATH = "/sdcard/mms/scrapSpace/file";
+        }
+
         public static final class Intents {
             private Intents() {
                 // Non-instantiatable.