I want to execute "adb" command using Java. I tried out as follow:
Process p = Runtime.getRuntime().exec(new String[]{"cmd","/c","adb devices"});
But, I get following error p.getErrorStream()
:
'adb' is not recognized as an internal or external command,operable program or batch file.
Is there any problem of space between "adb devices"?
How to add space in command?