Pregunta

I know there are various tools for creating android apps using python eg python-for-android, android-scripting-evrironment, SL4A etc.

What I need to know is which of these would be helpful if I need my application to use the Bluetooth module of the device.

¿Fue útil?

Solución

There is a BluetoothFacade that has been implemented for the upcoming release 5 of SL4A.

The API reference is located at http://code.google.com/p/android-scripting/wiki/unofficial_apiref

I don't believe that access to Bluetooth services is (at present) available via Kivy or any Kivy-derived project.

Otros consejos

It looks kivy start to provide Bluetooth related function now: https://github.com/kivy/python-for-android/tree/bluetooth

You can also use the PyBluez library. You need it compiled for ARM cores to use it on Android, but this has already been done and is available from the PY4A website's Modules page. You just download it to your device, then install it using your PY4A app's Install Module feature.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top