How to send file using bluetooth on android programatically?
I need to send file to a computer instead of another android application. I have looked at the bluetooth api, but it only allow connection as client-server. In my case I dont know what UUId would be on the computer. Do I need to look at obex. I haven't used it before. So any help would be benficial. Try this. I can send a file using this code. ContentValues values = new ContentValues(); values.put(BluetoothShare.URI, "file:///sdcard/refresh.txt"); values.put(BluetoothShare.DESTINATION, deviceAddress); values.put(BluetoothShare.DIRECTION, BluetoothShare.DIRECTION_OUTBOUND); Long ts = System