How to block HOME, MENU keys

How to shield

the HOME and MENU keys,   I have found a lot of answers, the following are several methods The mobile phone is made into a tool that only runs my program, click the HOME button, there is no change, but it only makes you feel that the HOME button is blocked from the software level, not the real shielding. The method mentioned on the Internet is basically the same after version 5.1. There is no solution. Even if the underlying JAR is modified, can it be ensured that it will not affect the current device? After all, the entire architecture of the mobile phone is not created by you.   (1) Since you want to block the HOME key, your APP must be a LAUNCHER app   (2) Just use one Activity, and use Fragment for the rest   (3) Use replace for each fragment to occupy the current page, and the fragments in the stack must be hidden.









Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326217766&siteId=291194637