Reputation: 13
I have one Bluetooth application. If I install that app in 2-3 devices then
How to know that same app is install in another devices or not like xender.
How to share local database of application via Bluetooth.?
Upvotes: 0
Views: 806
Reputation: 43
You can Create UUID's for your Application and connect your application using that UUID.
While discovering devices, you can check whether the UUID of your application is supported by the other device. If yes, then you can display it, otherwise don't display !!
Something like this to initiate connection - device.createInsecureRfcommSocketToServiceRecord(YOUR_UUID);
For more insights, refer the BluetoothChat Application by Google, available at https://developer.android.com/samples/BluetoothChat/index.html
Upvotes: 1