Android上的蓝牙文件传输(即使是受限制的类型) [英] Bluetooth File transfer on Android(even restricted types)

查看:495
本文介绍了Android上的蓝牙文件传输(即使是受限制的类型)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在中,我想添加一个功能,通过蓝牙发送APK文件的应用程序。它不是通过传统的方法允许作为APK限制的文件类型,所以我用BluetoothShare.java。显然它不能在杰利贝恩工作。我得到一个讨厌的安全异常。与此相同的。 <一href=\"http://stackoverflow.com/questions/12388503/android-bluetooth-print-stopped-working-on-4-1\">Android蓝牙打印停在4.1

I was making an application in which I wanted to add a feature to send apk files via bluetooth. Its not allowed through the traditional method as apk is restricted file type so i used BluetoothShare.java. Apparently it doesn't work on Jellybean. I get a nasty security Exception. Same as this one. Android bluetooth print stopped working on 4.1

有没有什么方法可以让我去这样做,如果可能的话?

Is there any way I can go about doing this, if possible?

推荐答案

重命名.apk文件为.zip并发送,然后重命名回.apk文件在手机上。

rename the .apk to .zip and send it, then rename it back to .apk on phone.

这篇关于Android上的蓝牙文件传输(即使是受限制的类型)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆