Execute 'adb' from an APK
<p>Planning to execute 'adb' to do some operation from an TestActivity.Java and try to execute the TestActivity.apk.</p>

<pre><code>File wd = new File("/Android/android-sdk-windows/tools/");
Process proc = Runtime.getRuntime().exec(
                      "adb shell monkey -p com.sample.cts -v 50", null, wd);
proc.waitFor() ;
</code></pre>

<p>Getting error - java.io.IOException: Error running exec(). Command: [adb, shell, monkey, -p, com.sample.cts, -v, 5000] Working Directory: null Environment: null</p>

<p>Can you please help me on this?</p>
