If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
I'm trying to reprogram the remote from my WeTek Hub to return to Kodi from other apps, but go to Kodi's main screen when already open.
I've managed to change the home button to go to Kodi's main screen by changing the 0xf2 entry in remote.conf from 102 (HOME) to 188 (KEY_1). I then changed the keymap in Kodi to make that key return to the main screen.
While this works perfectly in Kodi, I've now lost the ability to return to the launcher (programmed as Kodi) from other apps. How can I retain this functionality whilst adding the ability to Kodi?
Thanks!
Last edited by CyberJacob; 10-31-2016, 17:38.
Reason: fixed formatting
HOME is a special key code in Android that is handled at the OS level, filtered out from the rest of the system when intercepted. Kodi never sees it. As each key layout scancode can only map to a single android key code, you cannot double up on it. This cannot be done, without adding code to Kodi. You would need to intercept the home key press via android code, and handle it like any launcher would (like Samsung's launcher which intercepts home presses when your on a secondary home screen to move to the main screen.) See https://stackoverflow.com/questions/...default-screen or https://stackoverflow.com/questions/...to-home-b?rq=1 or https://stackoverflow.com/questions/...ess-in-android
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment