android藍牙調用系統發送文件的方法

分享給大家

	//調用系統程序發送文件
	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);
	getContentResolver().insert(Uri.parse("content://com.android.bluetooth.opp/btopp"), cv);

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章