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. Touch Calibration in Android 2.1

Hay there,
I am developing android 2.1 for our custom smdk6410 board. My problem
is TOUCHCALIBRATION support in driver and application.

in android 1.5 somone made some custom things in '/android/frameworks/
base/services/java/com/android/server/inputdevices.java' to read
calibration data from file 'etc/pointercal' and this data was written
by calibration applicaiton.

But when i tried to port these changes in android 2.1, the structure
of "inputdevices.java" was totally different. im fighting from last
two days but got no progress.


Someone please guide the proper way, that how can i add 'Calibration'
support in my  android. some code if possible.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Exposing data to third-party apps in a synchronous call?

Hi,

I've got an application, and I'd like to publish a way for third-party
services to get data from it. Ideally I could expose this  through
intents, as in the following pseudocode:

   // third party apps
   class ThirdPartyService extends Service {
       @Override
       public void onCreate() {
           Intent i = new Intent(this, "com.me.test.MyAppIntent");
           Intent result = startActivity(i);
       }
    }

    // part of my app
    class MyAppIntent extends Activity {
       @Override
       public void onCreate() {
           Intent i = new Intent();
           i.putExtra("result", "hi there");
           setResult(i);
           finish();
       }
    }

The above won't work of course - I have some work done on this, just
wondering if anyone has any recommendations or best practices?

Thanks

-- 

3. notifying that the dawvik vm has crashed

4. trying to send an MMS causes an ActivityNotFoundException to be thrown...

5. want to send an e-mail...

6. how to send an MMS

7. Need info on LOCAL_CFLAGS