I just want to execute my file from a specific folder. in my case /data/data/my-package/files/. So i tried :
Process process2=Runtime.getRuntime().exec(\"cd
A different solution will be,
Execute a .bat file from the Java Code
And do all the directory change, and stuff inside the bat file
For instance, my execute.bat file looks like this,
cd flutter_app
flutter build apk
cd ..
And the Java code looks like this,
Process process = Runtime.getRuntime().exec("execute.bat");