Simulating shell command in JAVA
<p>If I run the command <code>adb shell cat /dev/input/event0</code> at command prompt, it shows some raw data corresponding to user actions on Android emulator.</p>

<p>I want to simulate this command programmatically with Java to record user actions.</p>

<p>How can I achieve this?</p>
