【发布时间】:2015-06-05 15:45:15
【问题描述】:
大家好,我想知道如果用户在锁定屏幕上输入错误密码(当键盘锁处于活动状态)时如何显示祝酒词。我用谷歌搜索了 100 次,但我没有找到答案。
@Override
public void onPasswordFailed(Context context, Intent intent) {
super.onPasswordFailed(context, intent);
Toast.makeText(context, R.string.wrong_password,
Toast.LENGTH_LONG).show();
Log.d(TAG, "onPasswordFailed");
}
@Override
public void onPasswordSucceeded(Context context, Intent intent) {
super.onPasswordSucceeded(context, intent);
Log.d(TAG, "onPasswordSucceeded");
Toast.makeText(context, R.string.success,
Toast.LENGTH_LONG).show();
在我的 DeviceadminReceiver 中添加了这些行!设备解锁后显示祝酒词!任何帮助将非常感激 。在此先感谢:)
【问题讨论】:
标签: android android-activity toast