I'm using the android monkeyrunner to automatically run my application.
monkeyDevice.executeShellCommand("am start -a android.intent.action.MAIN -n "
+ name + " -e test_id " + test_id, new NullOutputReceiver());
Is it possible to get the name of the active application that is on the emulator screen using monkeyrunner?
You can get the current focused window using: