public void entry(View view){ System.out.println("123"); String password = et_password.getText().toString(); String pwd = sp.getString("lock_app_pwd", ""); Intent intent = getIntent(); if (password.equals(pwd)){ if(intent!=null){ String packname = intent.getStringExtra("packagename"); Log.i(TAG,packname); iLockService.stopLockAppFlag(packname); } finish(); } }
输入密码时屏蔽后退键