The HTML5 container is supported in the native AAR mode, the mPaaS Inside mode, and the component mode. If you want to connect to and use mPaaS as other SDKs, we recommend that you use the native AAR mode. The native AAR mode uses the native Android AAR-based packaging solution, and therefore is closer to the technology stack of Android developers. This access method frees you from the need to understand mPaaS-related packaging knowledge. You can integrate mPaaS into your projects by using the mPaaS Android Studio plug-in. This method reduces your access costs and makes it easier for you to get started with mPaaS.
To help you get familiar with and master the native AAR mode, this tutorial uses the native AAR mode as an example to provide guidance on how to connect to the HTML5 container component and use HTML5 offline packages.
This tutorial consists of the following parts:
- Create an app in Android Studio.
- Create an app in the mPaaS console.
- Connect mPaaS to your projects in the native AAR mode.
- Use the HTML5 container.
- Use HTML5 offline packages.
- How to create an Android app that displays Toast when a button is tapped
- How to connect to mPaaS based on native AAR
- How to use the HTML5 container service of mPaaS
- How to use HTML5 offline package service of mPaaS
- The development environment is configured. In this tutorial, the development environment in Windows is taken as an example.
- A web browser is installed. The Chrome browser is recommended.
- An Android phone and the supporting data cable are prepared. The operating system version is Android 4.3 or later. You can also use a simulator for debugging. This tutorial uses a simulator as an example.