if(result == JFileChooser.CANCEL_OPTION) return;
DeviceUtils.installAPK(device, chooser.getSelectedFile().getAbsolutePath(), true);
}
public static void installAPKAAPT()
throws TimeoutException, AdbCommandRejectedException, ShellCommandUnresponsiveException, IOException{
DdmsDeviceSelectDialog dialog = new DdmsDeviceSelectDialog(MainFrame.getInstance());
dialog.setVisible(true);
IDevice device = dialog.getSelectedDevice();
if(device == null)return;
JFileChooser chooser = new JFileChooser();
int result = chooser.showOpenDialog(MainFrame.getInstance());
if(result == JFileChooser.CANCEL_OPTION) return;
DeviceUtils.installAPK(device, chooser.getSelectedFile().getAbsolutePath(), true);