Z Zvi Member Licensed User Longtime User Nov 25, 2018 #1 I've made an app with phone owner's name, email and alternate contact number to be accessed if the phone is lost. The app includes both main screen and home screen widget and a click on either will call and also send an sms to the alternate contact number. Now I would like the app/widget to appear when a wrong lock screen code is entered (or even when the wrong code is entered more than x times). What is the best way to do that? Thanks for any suggestions...
I've made an app with phone owner's name, email and alternate contact number to be accessed if the phone is lost. The app includes both main screen and home screen widget and a click on either will call and also send an sms to the alternate contact number. Now I would like the app/widget to appear when a wrong lock screen code is entered (or even when the wrong code is entered more than x times). What is the best way to do that? Thanks for any suggestions...
DonManfred Expert Licensed User Longtime User Nov 25, 2018 #2 Zvi said: What is the best way to do that? Click to expand... i don´t think there is way at all. You get no notification about a wrong entered code. Upvote 0
Zvi said: What is the best way to do that? Click to expand... i don´t think there is way at all. You get no notification about a wrong entered code.
Z Zvi Member Licensed User Longtime User Nov 25, 2018 #3 But doesn't a wrongly entered code generate an error? If so, isn't there a service that can listen for that error? Upvote 0
But doesn't a wrongly entered code generate an error? If so, isn't there a service that can listen for that error?
DonManfred Expert Licensed User Longtime User Nov 25, 2018 #4 I don´t think that there is such a listener possible. Upvote 0
W wes58 Active Member Licensed User Longtime User Nov 25, 2018 #5 DonManfred said: i don´t think there is way at all. You get no notification about a wrong entered code. Click to expand... It is (or at least it was) possible with Device Administration - https://stackoverflow.com/questions...-screen-incorrect-password-by-user-in-android https://developer.android.com/guide/topics/admin/device-admin. Now some of the function are deprecated - typical to Google, always making OS changes and limit functionality. Upvote 0
DonManfred said: i don´t think there is way at all. You get no notification about a wrong entered code. Click to expand... It is (or at least it was) possible with Device Administration - https://stackoverflow.com/questions...-screen-incorrect-password-by-user-in-android https://developer.android.com/guide/topics/admin/device-admin. Now some of the function are deprecated - typical to Google, always making OS changes and limit functionality.
Z Zvi Member Licensed User Longtime User Nov 26, 2018 #6 Thanks for the info. I'm going to play around with this a bit and if I make any progress I'll post the code. Upvote 0
Thanks for the info. I'm going to play around with this a bit and if I make any progress I'll post the code.
W wes58 Active Member Licensed User Longtime User Nov 28, 2018 #7 Zvi said: Thanks for the info. I'm going to play around with this a bit and if I make any progress I'll post the code. Click to expand... Did you have a look at this thread? https://www.b4x.com/android/forum/threads/device-administrator-library.19208/#content I think everything what you need is there. Upvote 0
Zvi said: Thanks for the info. I'm going to play around with this a bit and if I make any progress I'll post the code. Click to expand... Did you have a look at this thread? https://www.b4x.com/android/forum/threads/device-administrator-library.19208/#content I think everything what you need is there.
Z Zvi Member Licensed User Longtime User Nov 29, 2018 #8 Brilliant! Thanks, looks like just what I needed. Upvote 0