On Dec 13, 5:02 pm, Jakub Czaplicki <[email protected]> wrote: > Hi All, > > Is there a way to unlock the screen after boot-up in jUnit ? > > I tried the deprecated keyguardManager.newKeyguardLock() method. I've > set the required DISABLE_KEYGUARD permission in jUnit manifest, but > the test still claims : "java.lang.SecurityException: Requires > DISABLE_KEYGUARD permission". > > I have also tried to set the > WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD flags, but in this > case I've got the following err msg : "android.view.ViewRootImpl > $CalledFromWrongThreadException: Only the original thread that created > a view hierarchy can touch its views" > > Thanks, > Jakub
Latest technique recommended by Google found here: http://developer.android.com/guide/topics/testing/activity_testing.html#UnlockDevice ... or is that what you've already tried? -- 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

