hi,
I have a requirement to disable the Lock Screen, after the call.
normally whats happening is when call starts in onresume :
app.disableKeyguard(); is called and again in onpause :
app.reenableKeyguard(); is called. but this is just temporary state
changing. I cant use this at the end of the call. if i do so then
there is misbehaviour in lock state.
so i would like to know how to disable the Lock Screen at the end of
the call ?
i have already tried
void exitKeyguardSecurely()
{
final KeyguardManager keyguardManager = PhoneApp.getInstance
().getKeyguardManager();
final PhoneApp app = PhoneApp.getInstance();
keyguardManager.exitKeyguardSecurely(new
KeyguardManager.OnKeyguardExitResult() {
public void onKeyguardExitResult(boolean success) {
// app.reenableKeyguard();
// app.disableKeyguard();
//app.setLockScreen(false);
Log.i("degug_log", "onPause"+"KeyGaurd ExitResult");
}});
}
but still its not working.
do update me or correct me if i am wrong in my understanding.
regards
Zealousian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---