How to send file using bluetooth on android programatically?

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.currentTimeMillis(); values.put(BluetoothShare.TIMESTAMP, ts); getContentResolver().insert(BluetoothShare.CONTENT_URI, values); Code of BluetoothShare.java import android.provider.BaseColumns; import android.net.Uri; /** * Exposes constants used to interact with the Bluetooth Share manager’s content * provider. */ public final class … Read more