Yes. Also, I get the version information from that 2nd app (the "Primary" App) through jShell, as well. The basic sequence is ...
- Starter App is run
- It shows splash screen while ...
- Connects to server (Starter App doesn't connect directly to databases ... it connects to a B4J server app that connects to the databases)
- Sends to the server the devices' MAC address and other identifying information for a 'device registration'
- jShell starts the Primary App and asks for it's version information then Primary App kills itself.
- Starter App asks Server App to compare my Primary App version with any new versions.
- Downloads new version, if necessary, of the Primary App and replaces it.
- jShell starts the Primary App while sending its' (Starter App) version information to the Primary App
- Starter App kills itself
- Primary App asks Server App to compare my Starter App version with any new versions.
- Downloads new version, if necessary, of the Starter App and replaces it.
- Primary App continues on.