Skip to content

3. Prepare your project to generate the APK





PreRequisites

You should understand how bundles and profiles work.

On the IOTZ Explorer Check the IoTize Studio Mobile App settings are appropriate:

  1. App Type = Generated App.
  2. App AAR for Android = Unique NFC application ID.
  3. Connect the Tap and click on Configure, then Oui on the pop up for reboot.
AAR: The Android Application Record is UNIQUE. It allows your app to start automatically. The AAR is registered in the Tap when you configure it. When an NFC phone detects an AAR, it asks the phone to launch the corresponding application (if it is not installed it searches in your PlayStore).

The Sensor demo app you downloaded from PlayStore is secure, so you cannot install another app that uses its AAR (com.iotize.app.sensordemo). You must use a new AAR and reconfigure the Tap.

This ID must be unique if you want to publish your app on the PlayStore. It is best practise to have a unique ID for your local testing to avoid conflicts.

Android App IDs are written as reversed URL (e.g. com.iotize.sensordemo.app).

The AAR can be seen (and modified) at the top of the "config.xml" file of the generated project.


Add your own Splash screen

In IoTize Application | Mobile App | Layout and Display choose an:

  • App icon pathname: this is displayed on every page of the app
  • Splash screen pathname: this is displayed while the app is launching.

We recommend using 1024 x 1024 pixels png files for the icon and 1732 x 1732 for the splash screen (see guidelines for Android or iOS).

Change the way Temperature_C is shown

In Duetware Configuration |Bundles | MySensors, click on Temperature_C and in the window underneath, choose Graphical component to be Chart.

This determines the way that you see this variable in your app.





Back to top