Android

The Parse on Buddy Android SDK has been built to support ‘forever free’. To that end, it delivers device and location information to the Parse on Buddy servers automatically on behalf of apps. It also includes PPNS functionality, an exclusive to Parse on Buddy.

Including the SDK

To include the Parse on Buddy Android SDK in your project, use the jFrog Bintray Maven package repository by adding the following to your build.gradle file in Android Studio:

dependencies {
  compile "com.buddy.parse:parse-android:1.16.1"

 

Initializing the SDK

To initialize the Parse on Buddy SDK, you must call Parse.Buddy.initialize() in the onCreate() method of your application’s main Activity. This is in addition to the standard Parse SDK initialization, documented here. Here’s an example of how it should look:

public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  Parse.Buddy.initialize(); // <- add this line
  …

 
Additionally, to support non-Google Play Android platforms, the SDK uses a library that requires addition of a line of code to your Application class’ onCreate() method. It should look like the following:

public class StarterApplication extends Application {
@Override
public void onCreate() {
  super.onCreate();
  // add the following line
  if (Parse.Buddy.skipApplicationOnCreate(this)) return;
  …

 
SDK version information

The Parse on Buddy Android SDK is a fork of the open-source SDK. Currently, we are synchronized with version 1.16.0 of the open-source SDK.

The Parse on Buddy Android SDK version will always be one patch version higher than the underlying open-source version.