sinkuri256 / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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