I have been trying to execute the aapt command through a java program for quite some time now. My hunch is that I should be using the runtime.exec()
command to make this happen. However, I have looked at other questions and answers and none seem to work for me.
The command is:
aapt package -u -f -F "/home/jay/testing_FILES.apk" "/home/jay/testing_FILES"
where the /home/jay/testing_FILES
is the original folder and the /home/jay/testing_FILES.apk
is the packaged name and location of the final apk. Can anyone explain to me how I can make this command run correctly using the aapt and java runtime.exec()
?