Mobile applications |
A complete and inclusive development environment allows you to write and test your Genero mobile apps from your desktop prior to deploying them to your mobile devices.
The mobile development environment includes the runtime DVM, the development IDE (Genero Studio), and two development agents: Genero Mobile for iOS (GMI) and Genero Mobile for Android (GMA). During development, the DVM and the IDE sit on the desktop, and the GMI and GMA display clients sit on mobile devices. A mobile device can be a physical device, such as a phone or tablet, or it can be an emulator.
During development, you run the app in developer mode. In developer mode, the app runs on a development machine and displays the user interface (UI) to an Android or iOS device or emulator. The server app makes the initial connection. The Genero Mobile Development Client runs on the device, listening at port 6400 (by default) for the connection.
Figure 1. Developer mode
Three clients are available for use while developing Genero mobile apps.
This client allows you to test your app on an Android physical device or emulator during development.
To put the GMA client on your Android device, you must connect your device to your computer via the USB port.
To run your app in developer mode and view it on your Android device, you must connect your device to your development machine via the USB port.
See Configure Genero Mobile for Android for details on setting up the GMA for development.
This client allows you to test your app on an iOS physical device or simulator during development. The development machine must use a Mac OS.
To put the GMI client on your iOS device, you must connect your device to your computer via the USB port.
To run your app in developer mode and view it on your iOS device, connect to your development machine via the USB port.
See Configure Genero Mobile for iOS for details on setting up the GMI for development.
To put the Genero Development Client on your iOS device, you must download the app from the Apple store.
To run your app in developer mode and view it on your iOS device using the Genero Development Client, you must use a wireless network (wifi).
See Display to the Genero Mobile Development Client for details on using the Genero Development Client.
Working from the desktop, you have the full suite of command line tools at your disposal: gsmake, fglrun. fglrun -d, and so on. See the Genero Business Development Language User Guide for information on the command line tools.
The development clients are provided to ease your development efforts, allowing you to view your app without having to package and deploy your app to the device to view changes in the app code. Towards the end of the development cycle, you will want to test your app running fully on the device.
When a package is deployed on a device where the debug package has been activated, debugging tools available include: