Overview

更新时间:
复制 MD 格式

The most common scenario for developing with Mobile PaaS (mPaaS) is to integrate it into an existing native Android project.

Scenario description

The most common scenario for developing with mPaaS is to integrate it into an existing native Android project.

This tutorial uses this scenario to demonstrate the complete development flow. You will create a native Android project, integrate mPaaS, develop a miniapp, and finally publish and launch the miniapp in your application.

Choose a connection type

mPaaS supports multiple connection types. If you want to integrate and use mPaaS as easily as any other software development kit (SDK), use the Native AAR connection type.

The Native AAR connection type uses the native Android AAR packaging solution, which aligns with the technology stack of Android developers. You do not need to understand mPaaS packaging. You can integrate mPaaS into your project with the mPaaS Android Studio plugin or directly through Maven's pom and bom files. This connection type lowers the integration cost and simplifies the use of mPaaS. It is ideal for users who want to quickly use mPaaS features and do not require the component-based (Portal&Bundle) connection type.

This tutorial series uses this connection type to demonstrate how to integrate mPaaS and perform the necessary operations.

What you will learn

  1. Create a native project in Android Studio: This project implements a simple feature that displays a Toast message when you tap the text.

  2. Create an application in the mPaaS console: This is a fundamental step for using the mPaaS console.

  3. Integrate the project using the Native AAR method: This is the recommended connection type for this tutorial.

  4. Initialize the configuration: Configure the project after integration.

  5. Create and publish a miniapp: Use the miniapp IDE to create and publish a miniapp. You can download the miniapp code sample used in this tutorial.

  6. Start the miniapp: In the project, replace the code that displays the Toast message with the code to start the miniapp. You can download the completed Android project code sample.