Hello guys i want to how to show a toast if the user enters wrong password on lock screen (when keyguard is active) .I googled it 100 of times , but i didnt find answer for it .
@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();
added those lines in my DeviceadminReceiver ! It shows a toast after the device is unlocked ! Any help would be really appreciated . Thanks in advance :)