Unable to send file using Bluetooth OBEX OPP profile from my Samsung Galaxy S2 ?

81 views
Skip to first unread message

Chirag Patel

unread,
Jan 4, 2012, 8:05:07 AM1/4/12
to 0xlab-discuss
Hi Erin,

I have developed one sample application to send file using Bluetooth
from one android phone to another android phone.

My application is working fine on Samsung Nexus S. I can send file
from Nexus s to another device.

But same application is not working on Samsung Galaxy S2. Both devices
has android SDK 2.3.3 installed.

Code snippet :

ContentValues values = new ContentValues();
values.put(BluetoothShare.URI,sendFilePath);
values.put(BluetoothShare.DESTINATION, BluetoothDeviceList.address);
values.put(BluetoothShare.DIRECTION,
BluetoothShare.DIRECTION_OUTBOUND);
values.put(BluetoothShare.TIMESTAMP, ts);
Uri contentUri =
mContext.getContentResolver().insert(BluetoothShare.CONTENT_URI,
values);


Thanks in advance.

Waiting for your reply.


Thanks,
Chirag
Reply all
Reply to author
Forward
0 new messages