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.
Announcement
Collapse
No announcement yet.
Announcement
Collapse
No announcement yet.
Capture volume key events in Android TV Box from Android version 8.1 on wards
Capture volume key events in Android TV Box from Android version 8.1 on wards
We have Android TV (ATV) box running on Android version 8.1 and above. We need to get key events for volume keys when pressed from ATV remote. Unfortunately we couldn't get volume key events from Android version 8.1. But we can get volume key events from Android version Nougat 7.0 box.
Question : How I need to capture volume key events in Android TV box versions 8.1 and 9 [pie] ?
We have tried following callback API : onKeyDown(), onKeyUp(), dispatchKeyEvent(), onKeyLongPress() and onKeyEvent() in activity class.
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.