[FAQ12964][OPP]无法通过蓝牙分享及接收apk应用文件
来源:互联网 发布:java流程控制 编辑:程序博客网 时间:2024/05/16 17:35
打开bt分享apk应用文件修改方法如下:
对alps/packages/apps/Bluetooth/AndroidManifest.xml文件的<activity android:name=".opp.BluetoothOppLauncherActivity"标签及
<action android:name="android.intent.action.SEND_MULTIPLE" />
标签中的内容替换为如下内容:
<activity android:name=".opp.BluetoothOppLauncherActivity"
android:process="@string/process"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:label="@string/bt_share_picker_label"
android:enabled="@bool/profile_supported_opp">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
<data android:mimeType="video/*" />
<data android:mimeType="audio/*" />
<data android:mimeType="text/x-vcard" />
<data android:mimeType="text/plain" />
<data android:mimeType="text/html" />
<data android:mimeType="application/*" />
<data android:mimeType="text/x-vcalendar" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
<data android:mimeType="video/*" />
<data android:mimeType="audio/*" />
<data android:mimeType="x-mixmedia/*" />
<data android:mimeType="text/x-vcard" />
<data android:mimeType="text/x-vcalendar" />
<data android:mimeType="text/plain" />
<data android:mimeType="application/*" />
</intent-filter>
允许接收对方apk文件修改如下:
把Alps/packages/apps/Bluetooth/src/com/android/Bluetooth/opp/Constants.java文件中的
public static final String[] ACCEPTABLE_SHARE_INBOUND_TYPES = new String[] {
"image/*",
"video/*",
"audio/*",
"text/x-vcard",
"text/plain",
"text/html",
"application/zip",
"application/vnd.ms-excel",
"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",
};
内容修改为:
public static final String[] ACCEPTABLE_SHARE_INBOUND_TYPES = new String[] {
"image/*",
"video/*",
"audio/*",
"text/x-vcard",
"text/plain",
"text/html",
"application/*",
};
- [FAQ12964][OPP]无法通过蓝牙分享及接收apk应用文件
- 【MTK】通过蓝牙分享及接收apk应用文件
- Android 蓝牙开发【五】OPP接收文件
- [Android应用] 蓝牙分享apk安装文件
- Android 蓝牙开发(五)OPP接收文件
- Android 蓝牙开发(五)OPP接收文件
- Android BluetoothProfile之OPP(蓝牙文件分享流程)
- android 通过蓝牙接收文件,从历史传输记录打开,无法自动选择合适的应用程序
- android文件管理器选择apk文件分享时没有蓝牙选项,对方通过蓝牙向本机传输apk文件时失败
- Android蓝牙开发【四】OPP传输文件
- Android 蓝牙开发(四)OPP传输文件
- 蓝牙文件接收的过程
- android 蓝牙 bluetooth OPP文件传输
- android应用下载后无法识别apk文件
- 通过上传的APK文件,解析APK文件内容,获取应用权限包名等
- Bluetooth Opp发送文件
- 通过APP分享或者接收的信息
- android -- 蓝牙 bluetooth (四)OPP文件传输
- 2017 Multi-University Training Contest
- 1002. A+B for Polynomials (25)
- 模糊查询
- C#禁用USB的两种方法(附代码)
- java基础
- [FAQ12964][OPP]无法通过蓝牙分享及接收apk应用文件
- 金蝶K3客户端:组件<KdSvrMgr>无法正常工作 排查分析步骤
- WebView页面上的图片点击的时候加载到Viewpager显示并且可以放大缩小
- 最短路的四种算法
- 九的余数
- 线段树总结
- 找朋友
- 自动轮播+无限轮播
- 信用卡评分模型(R语言)