Mobile applications / Mobile development mode |
Set up a development environment to display app forms on an Android device.
To display Genero application forms on an Android device in development mode (with programs executing on a computer), the GMA front-end app must be installed on the device (or emulator).
Before building the GMA front-end, fullfill the prerequisites to build an Android app as described in Building Android apps with Genero.
$ . ~/genero/devel/fgl/mobile/java-1.8.env $ . ~/genero/devel/fgl/mobile/android-sdk.env $ mkdir /tmp/gma $ cd /tmp/gma $ unzip ~/Download/fjs-gma-1.20.05-build201602101754-allos.zip Archive: ~/Download/fjs-gma-1.20.05-build201602101754-allos.zip ... inflating: fjs-gma-1.20.05-build201602101754-d32a040.apk inflating: fjs-gma-1.20.05-build201602101754-d32x040.apk ... $ gmabuildtool test --test-apk ./fjs-gma-1.20.05-build201602101754-d32a040.apk ...
Once the GMA front-end is installed on the device, make sure that WIFI is enabled and start the GMA app. The main GMA screen shows the IP address of the device and the TCP port it is listening to (0=6400).
On the development machine, define the FGLSERVER environment variable with the IP address of the device.
Now you are ready to run your app on the server and display on the Android device.