2015-08-08, 16:55
Issue:
I'd like to track when an Android app is launched from the favorites bar and KODI is no longer in the foreground. Conversely, I'd also like to track when KODI gets focus back after the Android app is closed.
Right now, I don't see any event packets being sent over the tcp port when an Android app is launched from within KODI's interface (e.g. using favorites only; I can't add a custom home shortcut to the app as the version of Confluence skin only supports adding addons to the home screen).
All other events are working fine for me.
What I'm trying to do:
I want to switch to Android tcp based control navigation when KODI no longer has foreground and KODI has been used to launch an android app from favorites. An app such as LANmote Deluxe or something similar would be used for when KODI is not in the foreground after the Android app is launched. This is because KODI's JSON-RPC can't be used to navigate android apps. The control switch between KODI JSON-RPC and LANmote would happen on my home automation server, and would be transparent to the user. When KODI is back in the foreground, KODI JSON-RPC would be used.
Background:
I'm trying to build an opensource module for a free home automation program called Motorola Premise (http://cocoontech.com/forums/page/home-a...premise-r3).
I'll post my work for others to use once everything is complete! The thread for the module is here: http://cocoontech.com/forums/topic/28413...c-support/
What I have now as a test bed is a NVidia Shield running KODI from the google play store. I am a first time KODI user, but I've built and posted ~20 opensource home automation modules on cocoontech.
I'm very impressed with KODI and the JSON-RPC protocol so far, aside from this one little gotcha.
I'd like to track when an Android app is launched from the favorites bar and KODI is no longer in the foreground. Conversely, I'd also like to track when KODI gets focus back after the Android app is closed.
Right now, I don't see any event packets being sent over the tcp port when an Android app is launched from within KODI's interface (e.g. using favorites only; I can't add a custom home shortcut to the app as the version of Confluence skin only supports adding addons to the home screen).
All other events are working fine for me.
What I'm trying to do:
I want to switch to Android tcp based control navigation when KODI no longer has foreground and KODI has been used to launch an android app from favorites. An app such as LANmote Deluxe or something similar would be used for when KODI is not in the foreground after the Android app is launched. This is because KODI's JSON-RPC can't be used to navigate android apps. The control switch between KODI JSON-RPC and LANmote would happen on my home automation server, and would be transparent to the user. When KODI is back in the foreground, KODI JSON-RPC would be used.
Background:
I'm trying to build an opensource module for a free home automation program called Motorola Premise (http://cocoontech.com/forums/page/home-a...premise-r3).
I'll post my work for others to use once everything is complete! The thread for the module is here: http://cocoontech.com/forums/topic/28413...c-support/
What I have now as a test bed is a NVidia Shield running KODI from the google play store. I am a first time KODI user, but I've built and posted ~20 opensource home automation modules on cocoontech.
I'm very impressed with KODI and the JSON-RPC protocol so far, aside from this one little gotcha.