В моем приложении для bluetooth я получил следующее исключение: любой может помочь решить эту проблему.Исключение разрешения на использование Bluetooth для Android
08-29 13: 07: 08,370: E/DatabaseUtils (31342): java.lang.SecurityException: Разрешение Отказ: написание com.android.bluetooth.opp.BluetoothOppProvider URI содержание: // ком .android.bluetooth.opp/btopp из PID = 9760, UID = 10110 требует android.permission.ACCESS_BLUETOOTH_SHARE или grantUriPermission()
Мой файл манифеста
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="process.bluetooth.sendfile"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="7"
android:maxSdkVersion="17"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.BLUETOOTH" android:label="BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<permission android:name="android.permission.ACCESS_BLUETOOTH_SHARE"
android:protectionLevel="signature" />
<application android:icon="@drawable/bluetooth"
android:label="@string/app_name"
android:allowBackup="true">
<activity android:name="process.bluetooth.sendfile.SendFileActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
Я не использую этот тип намерения. Я использую класс bluetoothShare для отправки файла. Вы говорите, что ответ отлично работает уже с этим. – Arut
также я использую android 2.3, а также 4.3 – Arut