I'm a newbie at programming, and I am trying to use Python in Android to control the bluetooth radio on my tablet (Galaxy Tab S 10.5).
My question is how can I use the following Android bluetooth API with Python:
bluetoothStop
bluetoothStop( String connID[optional, default null]: Connection id)
Stops Bluetooth connection.
Requires API Level 5.
When I try this:
import android
droid = android.Android()
droid.bluetoothStop()
Nothing happens
Meanwhile the below code does work, and toggles bluetooth on/off:
import android
droid = android.Android()
droid.toggleBluetoothState()
...and what is connID? Iseem to not find any refernce to this is the API reference. If I could get an example I may be able to apply to what I am doing but so far no example that I can see.
0 comments:
Post a Comment