android-mesosfer-integration

How to Build Starter Project Android Mobile Apps in Mesosfer Backend as a Service

This is a tutorial about How to Build Starter Project Android Mobile Apps in Mesosfer Backend as a Service

Introduction

In this section you will learn about How to Build Starter Project Android Mobile Apps in Mesosfer Backend as a Service. This tutorial will be divided in 9 sessions. You will be able to create Android Application in easy and fastest way as possible using Mesosfer Backend as a Service.

For the first session, you will learn about creating starter Android project in Mesosfer. For detail information about Mesosfer and the features, you can visit Mesosfer Website and Mesosfer Documentation.

Prerequisites

To follow the step in this tutorial, you should set up some prerequisites below:

  • Sign up for an account in Mesosfer Backend as a Service.
  • Install latest android studio. In this tutorial, the author used android studio version 2.2.1

Getting Started

To setup first, please download the most recent library file and then copy it to the libs folder of your android projects.

how-to-build-signup-android-mobile-apps-in-mesosfer-backend-as-a-service-input-lib

Then edit the file build.gradle in the app. Define the code below before dependencies.

Then add this code below in the dependencies:

how-to-build-starter-project-android-mobile-apps-in-mesosfer-backend-as-a-service-setup-dependencies

Create a new class, then insert script initialization below:

Complete code in the Class as in the picture below:

how-to-build-starter-project-android-mobile-apps-in-mesosfer-backend-as-a-service-init-class

Don’t forget to initialize your application class to AndroidManifest.xml

how-to-build-starter-project-android-mobile-apps-in-mesosfer-backend-as-a-service-init-class-manifest

To fill ApplicationID and Application Key to the Class MesosferApp you must create an application in the Mesosfer and select DATA as ApplicationType, like the picture below:

how-to-build-android-mobile-application-signup-in-mesosfer-cloud-platform-creae-apps

Then get into the apps you just created, and then to the menu appSetting to see Generate Application and Application Key Id. Those key is used for communication between Android apps and Mesosfer.

how-to-build-android-mobile-application-signup-in-mesosfer-cloud-platform-app-setting

Everything is set! Download full version code here.

Conclusion

We’ve made a Android Apps project initialization using Mesosfer. It only needs one line of code to build it. Easy, right?
Mesosfer helps you connect your project to the cloud. Cut off the development process so you can straight into the delivery process instead stumble on the complicated infrastructure.

Having more than 5 years experience in IT Consultant with the last position as Backend as a Service Developer and has an experience in planning, implementing IT Information System.