第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

android手機(jī)開(kāi)發(fā)藍(lán)牙傳輸問(wèn)題,求幫忙

android手機(jī)開(kāi)發(fā)藍(lán)牙傳輸問(wèn)題,求幫忙

BIG陽(yáng) 2018-11-03 14:18:35
昨天參照了網(wǎng)上寫(xiě)了一段手機(jī)間藍(lán)牙傳輸?shù)拇a,按 Ctrl+C 復(fù)制代碼ContentValues cv = new ContentValues();String uri = "file://"+ mSendFileNameTV.getText().toString().trim();cv.put("uri", uri);cv.put("destination",mTouchObject.bluetoothDevice.getAddress());cv.put("direction", 0);Long ts = System.currentTimeMillis();cv.put("timestamp", ts);可是運(yùn)行到下面這行代碼就報(bào)錯(cuò)了getContentResolver().insert(Uri.parse("content://com.android.bluetooth.opp/btopp"),cv);看了下logcat的信息顯示java.lang.SecurityException: Permission Denial: writing com.android.bluetooth.opp.BluetoothOppProvider uri content://com.android.bluetooth.opp/btopp from pid=10194, uid=10056 requires android.permission.ACCESS_BLUETOOTH_SHARE, or grantUriPermission()這個(gè)是什么原因造成的錯(cuò)誤?有解決的方法么?
查看完整描述

2 回答

?
HUH函數(shù)

TA貢獻(xiàn)1836條經(jīng)驗(yàn) 獲得超4個(gè)贊

log信息不是很清楚么?  requires  android.permission.ACCESS_BLUETOOTH_SHARE 

查看完整回答
反對(duì) 回復(fù) 2018-11-06
?
MYYA

TA貢獻(xiàn)1868條經(jīng)驗(yàn) 獲得超4個(gè)贊

請(qǐng)問(wèn)你怎么解決的

查看完整回答
反對(duì) 回復(fù) 2018-11-06
  • 2 回答
  • 0 關(guān)注
  • 946 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)