Skip to content Skip to sidebar Skip to footer

Java Application To Install APK On Android

I am trying to make a simple application in Java to install an APK on android devices connected via USB. Using ABD manually then everything works fine, but I wanted to give a simp

Solution 1:

i guess it is because your java application not being able to resolve the adb binary. try adding the adb binary in your environment variable so that it is accessible from anywhere.

try this:

    ProcessBuilder pb = new ProcessBuilder("cmd","arg1");
pb = pb.redirectErrorStream(true);
    Process proc = pb.start();
    InputStream is = proc.getInputStream();

Post a Comment for "Java Application To Install APK On Android"