Building > Quick Guides > Android > CHT Android Flavors
Branding the CHT Android applications
When onboarding new users, having a dedicated CHT app and instance for training can be helpful; it allows new users to do training exercises with mock data to get familiar with the app, while not having the data from their training interfering with the future use of their CHT app. Different approaches are possible, such as only entering real patient data during training, or manually deleting all the training data, but these methods are less practical for large deployments.
A separate Android App can be created for training, which would point to a CHT instance dedicated to training. The training instance should have the same configuration as the production instance, and have users created for training. To differentiate the Android app used for training from the production one, create a duplicate of your flavor and modify the following aspects
IS_TRAINING_APP
to true
, as seen in build.gradle
for the training version of the Gamma app.res/values/strings.xml
file set the app_host
string to be the URL of your training instance, as seen in the Gamma Training app. If left the same as the production app both training and production data will end up in your production instance.CHW App [TRAINING VERSION]
may display as CHW App...
so it would be better to use [TRAINING] CHW App
. The app name is set in the flavor’s res/values/strings.xml
file, as seen in the Gamma training app.applicationId
, as seen in build.gradle
for the Gamma training app.applicationId
values the same will make it impossible to have both the training and production apps installed at the same time on a device. If you have a way to install the production app after the training is complete then you may choose to do this to prevent users from using the wrong app.To avoid having production data in the training app, it is encouraged to remove the training app from the device once training is complete.
If the production app can always be installed after the use of the training is complete, then using the same applicationId
guarantees that only one of the apps is installed at any given time.
Changing passwords for the training users in an attempt to lock them out is not recommended. In some circumstances a user would be able to continue to use the training app for production use and not have the data sync back to the server.
It is preferable to remove the training app from devices, and monitor the training instance for unexpected activity that can be brought over to the production instance if needed.
Branding the CHT Android applications
App and care workflow training using remote capabilities.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.