Chirag Patel
unread,Jan 4, 2012, 8:05:07 AM1/4/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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