1

I'm working on writing a test to be added to an automated test script, and I want to be able to guarantee that the phone's screen is on as part of my initialization process. I have no real preference as to how to accomplish this, so I'm fine with either ADB or Java, or whatever method might be applicable.

alexgolec
  • 26,898
  • 33
  • 107
  • 159
  • possible duplicate of [How can I unlock the screen programmatically in Android?](http://stackoverflow.com/questions/1959012/how-can-i-unlock-the-screen-programmatically-in-android) – Octavian Helm Jun 16 '11 at 18:06

1 Answers1

2

Have you seen this question?

The answers give solutions using both code in the onCreate method or adb.

Community
  • 1
  • 1
mjr
  • 1,963
  • 4
  • 20
  • 21