由网友(最新好听的昵称大全)分享简介:我想锁定屏幕。我想禁用的Home键,并且只使用返回键。我如何做到这一点?I'd like to lock the screen. I want to disable the home key and only use the back key. How do I accomplish this?推荐答案使用这种方...
我想锁定屏幕。我想禁用的Home键,并且只使用返回键。我如何做到这一点?
I'd like to lock the screen. I want to disable the home key and only use the back key. How do I accomplish this?
推荐答案
使用这种方法来禁用的Home键的机器人
Use this method to disable the Home key in android
@Override
public void onAttachedToWindow() {
this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
super.onAttachedToWindow();
}
相关推荐
最新文章