Using Android API with kodi
#1
I want to use this API ACTION_CONNECTION_STATE_CHANGED to know when the bluetooth is connected and when not.
How can I use Android API with Kodi?

Here there are several ways to use Python with Android.
And here for example, on pyjnius with Kodi.
I prefer a simple way without JNI, if possible.
Reply
#2
I may be wrong.. I believe you can indeed already run any android command.. same way as you launch a favorite android app I suppose..

xbmc.executebuiltin(android.bluetooth.a2dp.profile.action.CONNECTION_STATE_CHANGED)
Reply
#3
Thanks.
But it seems to me that with xbmc.executebuiltin, for Android you can only do StartAndroidActivity.
Reply

Logout Mark Read Team Forum Stats Members Help
Using Android API with kodi0