android p文件管理器中apk文件,没有蓝牙发送分享修改。

Bluetooth 支持哪些类型的文件分享
【android p文件管理器中apk文件,没有蓝牙发送分享修改。】主要定义再package/app/Bluetooth/AndroidManifest.xml中


BluetoothOppLauncherActivity.java intent-filter 中定义了所有支持分享的文件类型。
我们只需要添加就可以了

Bluetooth 支持接收的文件类型
packages/apps/Bluetooth/src/com/android/bluetooth/opp/Constants.java
/** * The MIME type(s) of we could accept from other device. * This is in essence a "white list" of acceptable types. * Today, restricted to images, audio, video and certain text types. */ static final String[] ACCEPTABLE_SHARE_INBOUND_TYPES = new String[]{ "image/*", "video/*", "audio/*", "text/x-vcard", "text/x-vcalendar", "text/calendar", "text/plain", "text/html", "text/xml", "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", "application/x-hwp", "application/ogg", "application/vnd.android.package-archive",//add for apk file type "text/comma-separated-values", };

添加
"application/vnd.android.package-archive",//add for apk file type

    推荐阅读