Reputation: 177
Is there any way to automatically accept bluetooth file transfer requests from paired devices on android, or automatically establish a connection with available paired devices? I know it might be dangerous to automatically accept all files but I need it for my app.
Upvotes: 2
Views: 3511
Reputation: 8981
Sure. Just open a BluetoothSocket
with the UUID
of the other device you want to connect to. Then you can read the bytes from the stream and handle them in the way you want.
Upvotes: 2
Reputation: 1128
I created a helper app that runs on Rooted Devices.
Please visit Here for more information.
Upvotes: 0
Reputation: 1820
Pls provide more information about what you want to do.
Bluetooth connections have several problems, one is that after a timestamp the bluetooth is no longer available for you to detect. Unless u intend to constantly turn on the bluetooth visibility that is not going to work.
Upvotes: 0