I want to run aapt using the Java runtime. My code is as follows:
String srcFile = "/home/jay/testing_FILES.apk";
String dsFile = "/home/jay/testing_FILES";
String firstCommand = ("/home/jay/android-sdk-linux/platform-tools/aapt " +
"package -u -f -F" + srcFile + dsFile);
try {
Runtime rt = Runtime.getRuntime();
Runtime.getRuntime().exec(firstCommand);
} catch (IOException e1) {
e1.printStackTrace();
}
This code doesn't give me an error, but it doesn't give me any results either. Any thoughts on how to fix this? Also this is meant to be portable code so if there is a way to do it without scripting that would be preferred.