All Products
Document Center


Last Updated: Feb 20, 2021

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:

  1. Create an app in Android Studio.
  2. Create an app in the mPaaS console.
  3. Connect mPaaS to your projects in the native AAR mode.
  4. Use the HTML5 container.
  5. Use HTML5 offline packages.

What you will learn

  • 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


  1. The development environment is configured. In this tutorial, the development environment in Windows is taken as an example.
  2. A web browser is installed. The Chrome browser is recommended.
  3. 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.