All Products
Search
Document Center

Mobile Platform as a Service:Overview

Last Updated:May 18, 2021

The Scan component is supported in the native AAR mode, the mPaaS Inside mode, and the component-based 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 the native AAR mode, this tutorial describes how to add the Scan component in the native AAR mode and how to use the scan feature.

This tutorial contains the following five parts:

  1. Create an application in Android Studio
  2. Create an application in the mPaaS console
  3. Access a project in the native AAR mode
  4. Use the scan feature in a standard UI
  5. Use the scan feature in a custom UI

What you will learn

  • How to create an Android app that displays Toast when a button is tapped
  • How to access a project in the native AAR mode.
  • How to use the scan feature in a standard UI.
  • How to use the scan feature in a custom UI.

Prerequisites

  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.