Android

Download an Android project with source code and start using Back4App

Introduction

In this section you learn how to get started with an Android Studio template and get ready to use Back4App in 3 easy steps.

If you want a detailed Quickstart guide or connect Back4App to an existing project, go to our Install Parse SDK tutorial

Prerequisites

To complete this quickstart, you need:

Step 1 - Get the template

Download the template at Back4App’s GitHub repository, and unzip files in your project folder.

You can do that using the following command line:

  $ curl -LOk https://github.com/back4app/android-quickstart-example/archive/master.zip && unzip master.zip

Step 2 - Open the project template

  1. Open Android Studio.
  2. Click on Open an existing Android Studio project.

    Android Studio Welcome Screen

  3. Navigate to the project folder and click on OK.

    Android Studio Opening file

  4. Wait for Android Studio to open and run Gradle.

Step 3 - Set up app’s credentials

Update your strings values to set up the app’s credentials. Parse Android SDK uses these settings to connect to the Back4App servers.

  1. Open your strings file: .../app/src/main/res/values/strings.xml

    Strings.xml File

  2. Go to your App Dashboard at Back4App website.
  3. Navigate to app’s settings: Click on Server Settings > Core Settings block > SETTINGS.

    Back4app features page

  4. Return to your strings.xml file and paste your applicationId and clientKey.

See more at our New Parse App guide.

Step 4 - Testing your connection

  1. Build your app in a device or virtual device (Shift+F10).

    Build app

  2. Wait until the Hello Word! screen appears.
  3. Login at Back4App Website.
  4. Find your app and click on Dashboard.
  5. Click on Core.
  6. Go to Browser.

If everything works properly, you should find a class named Installation as follows:

Installation at Back4App Dashboard

It’s done!

At this point, you have learned how to get started with Android apps.

Learn more by walking around our Android Tutorials or check Parse open source documentation for Android SDK.