Tuesday, February 18, 2014

How to use android shell code to call?


shell command
screencap / data / card / test.png

I would like android, use code to call this shell, and ask how to write<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
You are not enough authority to execute this command
Reply:
Can you tell me how to write it?
Reply:
reference to the second floor liujun3512159 reply:
can tell me how to write it?

getruntime.exec ("system (screencap / data / card / test.png)")
Reply:
String command = "system (screencap / data / card / test.png)";
String [] cmd = {commands};
Runtime.getRuntime () exec (cmd);.
Are being given, I ask what is wrong Oh?

java.io.IOException: Error running exec () Command:. [system (screencap / sdcard/PowerMedia/12345678920131115163052.png)] Working Directory: null Environment: null

No comments:

Post a Comment