通过蓝牙分享及接收apk应用文件

本文详细介绍了蓝牙应用程序中对APK文件传输的支持更新。通过修改AndroidManifest.xml文件,蓝牙应用现在能够处理并传输多种类型的文件,包括新增的应用程序包档案。此更新涉及在蓝牙OPP(Object Push Profile)模块中对常量和Intent过滤器的调整,以支持更广泛的数据类型。
  1. --- a/alps/packages/apps/Bluetooth/AndroidManifest.xml

  2. +++ b/alps/packages/apps/Bluetooth/AndroidManifest.xml

  3. @@ -193,6 +193,9 @@

  4. <data android:mimeType="text/x-vcalendar" />

  5. <data android:mimeType="application/ogg" />

  6. <data android:mimeType="application/mspowerpoint" />

  7. + <data android:mimeType="application/vnd.android.package-archive" />

  8. </intent-filter>

  9. <intent-filter>

  10. <action android:name="android.intent.action.SEND_MULTIPLE" />

  11. @@ -214,6 +217,9 @@

  12. <data android:mimeType="application/pdf" />

  13. <data android:mimeType="application/ogg" />

  14. <data android:mimeType="application/mspowerpoint" />

  15. + <data android:mimeType="application/vnd.android.package-archive" />

  16. </intent-filter>

  17. <intent-filter>

  18. <action android:name="android.btopp.intent.action.OPEN" />


 
  1. --- a/alps/packages/apps/Bluetooth/src/com/android/bluetooth/opp/Constants.java

  2. +++ b/alps/packages/apps/Bluetooth/src/com/android/bluetooth/opp/Constants.java

  3. @@ -247,7 +247,8 @@ public class Constants {

  4. "application/vnd.openxmlformats-officedocument.presentationml.presentation",

  5. "application/x-hwp",

  6. "application/vnd.android.package-archive",

  7. - "application/x-flac"//flac

  8. + "application/x-flac",//flac

  9. + "application/vnd.android.package-archive

  10. };

  11.  
  12. /**

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值