The program I\'m working on uses ADB (Android Debug Bridge) to send files to my phone:
for (String s : files) String cmd = \"adb -s 0123456789ABCDEF push
I finally got it working:
ProcessBuilder pb = new ProcessBuilder("adb", "-s", "0123456789ABCDEF", "push", inputfile, outputfile); Process pc = pb.start(); pc.waitFor(); System.out.println("Done");
I don't know what problems ProcessBuilder has with spaces in a string, but finally, it's working...
ProcessBuilder