Send Contact via bluetooth in android [duplicate]
I am developing an Android application which needs a Contact to be transmitted from one android device to another via Bluetooth. How to successfully transfer the contact?
Is there any efficient way to transfer the Contact?
Any help will be appreciated.
Try to use the link for the bluetooth transfer of images. You have to use the byteArray in case of transfering images via bluetooth.
ByteArrayOutputStream bos = new ByteArrayOutputStream();
b.compress(Bitmap.CompressFormat.PNG, 0 , bos);
byte[] bitmapData = bos.toByteArray();
bluetoothManager.sendDateToBTDevice(bitmapData);
You can go thro the BluetoothChat example in API demo n proceed wit that
精彩评论