OSDN Git Service

enable xlsx, docx, pptx format to transfer/receive over bluetooth
authorSungmin Choi <sungmin.choi@lge.com>
Fri, 30 Nov 2012 06:59:30 +0000 (15:59 +0900)
committerMatthew Xie <mattx@google.com>
Wed, 20 Mar 2013 17:59:56 +0000 (10:59 -0700)
Add proper MIME types for xlsx, docx, pptx.

Bug: 7479989
Change-Id: I77b065f7856fa399c5084ffa96deace0e3f15487

AndroidManifest.xml
src/com/android/bluetooth/opp/Constants.java

index 389a21c..4a363dd 100644 (file)
                 <data android:mimeType="application/msword" />
                 <data android:mimeType="application/vnd.ms-powerpoint" />
                 <data android:mimeType="application/pdf" />
+                <data android:mimeType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />
+                <data android:mimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document" />
+                <data android:mimeType="application/vnd.openxmlformats-officedocument.presentationml.presentation" />
             </intent-filter>
             <intent-filter>
                 <action android:name="android.intent.action.SEND_MULTIPLE" />
index 5a07955..29df875 100644 (file)
@@ -218,6 +218,9 @@ public class Constants {
         "application/msword",
         "application/vnd.ms-powerpoint",
         "application/pdf",
+        "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
+        "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
+        "application/vnd.openxmlformats-officedocument.presentationml.presentation",
     };
 
     /**