user2917437
user2917437

Reputation: 81

How to Connect and Send Data using bluetooth c# Xamarin?

I already am able to find the devices and almost connect to them, im sure the connecting button is working but the other device is no answering right so its not connecting i need help with that... And after they be connected i would need to send a zip file by bluetooth and i really dont have any idea how to do that.

Here is my code

http://pastebin.com/hwERjS6u

And here is the blueToothChatService class im using

http://pastebin.com/6SH56Wqj

If someone already made this or has any sample to help me i would be really thankful my brain is melting... -.-

Thanks

Upvotes: 7

Views: 36188

Answers (2)

Dave
Dave

Reputation: 2308

I've been doing some Bluetooth stuff on Xamarin Android recently and found the following source code incredibly helpful.

https://developer.xamarin.com/samples/monodroid/BluetoothChat/

Upvotes: 1

Rusty Nail
Rusty Nail

Reputation: 2700

...

Android Connectivity

From someone that knows what they are doing - Nice Article: Peter Leow

BluetoothServerSocket  bluetoothServerSocket = bluetoothAdapter.listenUsingRfcommWithServiceRecord(getString(R.string.app_name), uuid);

private final static UUID uuid = UUID.fromString("fc5ffc49-00e3-4c8b-9cf1-6b72aad1001a");

Upvotes: 0

Related Questions