Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

Prevent the action of the home button

$
0
0
Hi,

I am developing an application for a specific tablet which have two physicals button, the home button and the back button and have a simple launcher which launch a web browser. My launcher has the system permissions, but I couldn't change or modify the android Rom , I am not root, and I can't be. Do you know if there is a way to prevent the home button to be pressed or to catch the event. I tried to overdrive onKerPressed, it worked for the back button, but not for the home button.

If you have any idea, I am listening.

Thanks for your help.



Envoyé de mon Nexus 5 en utilisant Tapatalk

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>