damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.44k stars 800 forks source link

add the possibility to choose the service name in bluetoothAccept() #188

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:28

I would like to connect a bluetootth device to my android phone. 

My device is only able to connect to a bluetooth service with a specific name.

I have played with python and have seen that the bluetoothAccept() only 
accepted one optional argument (UUID).

I have seen here : 
http://code.google.com/p/android-scripting/source/browse/android/BluetoothFacade
/src/com/googlecode/android_scripting/facade/BluetoothFacade.java that in fact 
BluetoothFacade sets the service name to "SL4A", without the possibility in the 
API to modify it.

Would it be possible to update the bluetoothAccept() function in a way that it 
takes 2 arguments (service name, service uuid). this seems to be the case for 
BluetoothAdapter::listenUsingRfcommWithServiceRecord()

Original issue reported on code.google.com by veran...@gmail.com on 19 Nov 2010 at 12:44

Copied from original issue: damonkohler/android-scripting#480