if I am putting notepad.exe in the same directory it is working, when putting 1.exe which is java app that was created using b4j it will not run with the following error Error: org.apache.commons.exec.ExecuteException: Execution failed (Exit value: -559038737. Caused by java.io.IOException...
www.b4x.com
it solves the issue of running another b4j app.
and about sharing data i think i will store it in a file and when the app starts it will read from it and delete it since i dont want the data to stay locally.
It might be worth considering generating a random filename in app 1 then passing that as a parameter to app 2 , that way sneaky people won't know what name to look for.
It might be worth considering generating a random filename in app 1 then passing that as a parameter to app 2 , that way sneaky people won't know what name to look for.
It might be worth considering generating a random filename in app 1 then passing that as a parameter to app 2 , that way sneaky people won't know what name to look for.
This is the way I implemented this in one of my apps. I didn't use a random file name, but it works well. You can pass a small amount of data as a parameter but the length is limited, if you don't know how much data will need to be passed, it is easier and safer to use a file and pass the path to it.
I also used the same filename to send data back when required.
This is the way I implemented this in one of my apps. I didn't use a random file name, but it works well. You can pass a small amount of data as a parameter but the length is limited, if you don't know how much data will need to be passed, it is easier and safer to use a file and pass the path to it.
I also used the same filename to send data back when required.
i am saving the data to a file (random name) -> passing the path -> open the other app
other app getting the path from args() -> processing the data - deleting the file