Overview

更新时间:
复制 MD 格式

The H5 container supports two connection types: native AAR and component-based.

The native AAR connection type lets you integrate and use mPaaS as easily as any other software development kit (SDK). This connection type uses the native Android AAR packaging solution, which aligns with the technology stack of Android developers. This means you do not need to understand mPaaS packaging. You can use the mPaaS plugin for Android Studio to integrate mPaaS into your project. This method reduces integration costs and makes mPaaS easier to use.

This tutorial uses the native AAR connection type as an example to show you how to quickly integrate the H5 container component and use H5 offline packages.

This tutorial includes the following five parts:

  1. Create an application in Android Studio.

  2. Create an application in the mPaaS console.

  3. Integrate the project using the native AAR method.

  4. Use the H5 container.

  5. Use H5 offline packages.

What you will learn

  • How to create an Android application that displays a Toast message when a button is clicked.

  • How to integrate mPaaS using the native AAR method.

  • How to use the mPaaS H5 container service.

  • How to use the mPaaS H5 offline package service.

Prerequisites

  1. A configured development environment. This tutorial uses a Windows development environment as an example.

  2. A web browser. Chrome is recommended.

  3. An Android phone that runs Android 4.3 or a later version, along with a matching data cable. Alternatively, you can use an emulator for debugging. This tutorial uses an emulator as an example.