Lock screen disabling at call End

by Zealousian » Wed, 05 Aug 2009 15:23:07 GMT


Sponsored Links
 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
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. ListView.addHeaderView() example

I'm looking for an example of ListView.addHeaderView  (View v, Object
data, boolean isSelectable).

Has anyone seen one?


-- 

2. creating a listview w/ images

i'd like to create a list with an image on the right side of each
entry -

and preferably have a separate callback if the image is clicked.

much like the contact call-listview - can click on either the name
(edit) or the phone
icon on the right (call).

just wondering what kind of list and/or adapter i have to use.

thanks.

-- 

3. Authentication

4. Rooting the emulator

5. How can i make to return from the external link to my application?

6. How to build Android open source project

7. question about ril-daemon's group list