Execute adb commands from java Jframe

Published: 07 July 2020
on channel: Pro Skills Center
1,634
19

Execute adb commands from java Jframe
........................................................................................................................................
try{
ProcessBuilder pb = new ProcessBuilder("cmd.exe", "/c", "adb reboot");
Process pc = pb.start();
pc.waitFor();
InputStreamReader isr=new InputStreamReader(pc.getInputStream());


Scanner sc=new Scanner(isr);
while(sc.hasNext()){
System.out.println(sc.next());
}
System.out.println("Done");

}

catch(Exception e){

System.out.println(""+e);
}


On this page of the site you can watch the video online Execute adb commands from java Jframe with a duration of hours minute second in good quality, which was uploaded by the user Pro Skills Center 07 July 2020, share the link with friends and acquaintances, this video has already been watched 1,634 times on youtube and it was liked by 19 viewers. Enjoy your viewing!