简体   繁体   中英

How to disable android home key 5.1.1

I have developed an android application. It has 3 activities, upon reaching the third activity, I need to disable "back", "home", "task" buttons. I have already done this for "back" and "task" buttons. But I couldn't handle the "home" button disabling. Please help me out of this.

Not possible in lolipop but pre kitkat support this

@Override
public void onAttachedToWindow() {
    this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
    super.onAttachedToWindow();
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM