Quickstart

Step 1 – Downloading Parse SDK

Since parse.com won’t update their sdks, we need to download the latest Android SDK from Github.

 

Screen Shot 2016-07-24 at 8.04.43 pm
Download Link:

https://github.com/ParsePlatform/Parse-SDK-Android

 

Step 2 – Copy SDKs to your Android Studio Project

After you downloaded the SDKs and create your Android Studio Project.
Copy the bolts-tasks-1.4.0.jar from Step 1, parse-android-1.13.1.jar from Step 2 to /app/libs/
Screen Shot 2016-07-24 at 8.22.19 pm

 

and then add below codes if your app/build.gradle doesn’t have

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.3.0’
}

Sync

Wn5WKumZdI

 

Step 3 – Grant Internet Permission to Your Android App

 

Using Parse on Android app require internet permission. Kindly add the following code to your AndroidManifest.xml

 

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>

 

Screen Shot 2016-07-24 at 8.17.48 pm

 

Step 4 – Import parse libs to your code

 

By calling all Parse provided functions, parse libs need to be imported.

Import these code on your activity which will implement parse function.

import com.parse.Parse;
import com.parse.ParseObject;
import com.parse.ParseUser;

 

Step 5 – Initialize your parse

 

To connect your app and back4app. We can use Parse.Initialize function build a Bridge.

Inside your activity onCreate add below code.

Note that you need to point the server url to back4app. If you just simply use Parse.initialize(this,aped,client key), It will not point to your back4app Application.

Parse.initialize(new Parse.Configuration.Builder(this)
                .applicationId("Your Back4app application ID")
                .clientKey("You can find it on Features -> Core Settings -> Server")
                .server("https://parseapi.back4app.com/").build()
);

To this step, the basic setup should be done.