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. SharedPreferences problem

I have a PreferenceActivity that uses an xml file to automatically
populate and save the preferences.  Sometimes though, when that
activity is started, the preferences are blank.  However, if you go
back later, they will reappear.

This is causing a lot of headaches with my app.  I have a Service and
BroadcastReciever running in the background that are also accessing
and (sometimes) updating the preferences.  Are there synchronization
issues with shared preferences?  Maybe permission issues?

I'm really stuck here and would greatly appreciate any insight you can
offer.

Thanks,
Eric
--~--~---------~--~----~------------~-------~--~----~

2. GsmCellLocation Problem

Hi..  I've this Extension of BroadCastReceiver

public class RisultatiScansione extends BroadcastReceiver {
....
public void onReceive(Context context, Intent intent) {

                GsmCellLocation.requestLocationUpdate();


                TelephonyManager k=(TelephonyManager) context.getSystemService
(Context.TELEPHONY_SERVICE);
                z=(GsmCellLocation) k.getCellLocation();
                Log.d("MEEEEE",z.getCid()+z.getLac());
....
}

This BroadcastReceiver is called at regular interval.. Lets say 5
minutes. I noticed that using the car for 35 min.. ( this code runned
7 times ) .. I got a log with the same Cid and Lac..

This is not possible cause i covered 45km of space.. And the previous
day i got a different log.. Of different Cell-Ids and (sometimes)
Lac ...

Can someone tell me what am i doing wrong?  Thanks
--~--~---------~--~----~------------~-------~--~----~

3. Issues while using the VideoView

4. return types for java call from javascript with addjavascriptinterface

5. Exchanging Messages between services containing Bundles with self developed Parcelables

6. Theme setting for all applications

7. How to draw an image on top of another drawable?