I want to run a few tests on the device. The device should *NOT* be connected through USB. i.e. no ADB. So basically my app/service should be stand alone. And this app is purely for internal purpose. So even a horrible hack that works consistently well is fine.
Let's say I want this app/service to wake up (probably using alarm manager) every N minutes and do the following: - Turn the display on - Unlock the device - launch youtube app (and play a video) - Since youtube app holds a display lock, the screen won't go off as long as the video is playing. - Once the video has finished playing, youtube app itself releases the display lock, and hence the screen should go off on it's own. Now how do I do this? Do I use a test framework? The most important thing here is that I *don't* want to use ADB. Looks like testing tools, like MonkeyRunner, work only on ADB. I tried using AlarmManager, with the "RTC_WAKEUP", and the PowerManager "wake lock". But it's too inconsistent. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en