Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

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.

I created a helper app that runs on Rooted Devices.

Please visit Here for more information.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top