hi guys
at the first i'm sorry for my bad English!!
i want to make a locker app like for example go locker or etc
first problem!:
at first i must make app safe mean you can't close it before unlock the app!
i solved problem for home,back key
but my problem is on long press home key in a phone like Xperia ray or multi tasking key in a phone like sony xperia z1
i found this code for java:
when i tested this code in Eclipse it work's for ray !but it doesn't work for xperia z1
mean this code close any notification
and its good but it didn't solved the xperia z1 problem mean multi tasking key
now can i use this code in b4a?!how?
and did you have any better answer?
second problem!:
did you have any idea for making a good ,fast and soft patern for password of locker!?
if anyone has any thing about these please say!!
and thanks for reading this tooo long thread!!!!
at the first i'm sorry for my bad English!!
i want to make a locker app like for example go locker or etc
first problem!:
at first i must make app safe mean you can't close it before unlock the app!
i solved problem for home,back key
but my problem is on long press home key in a phone like Xperia ray or multi tasking key in a phone like sony xperia z1
i found this code for java:
B4X:
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
// Log.d("Focus debug", "Focus changed !");
//'if(!hasFocus) {
// Log.d("Focus debug", "Lost focus !");
Intent closeDialog = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
sendBroadcast(closeDialog);
//}
}
when i tested this code in Eclipse it work's for ray !but it doesn't work for xperia z1
mean this code close any notification
and its good but it didn't solved the xperia z1 problem mean multi tasking key
now can i use this code in b4a?!how?
and did you have any better answer?
second problem!:
did you have any idea for making a good ,fast and soft patern for password of locker!?
if anyone has any thing about these please say!!
and thanks for reading this tooo long thread!!!!