How to update Parse SDK for Android

First of all, you have to install the latest version of the Parse SDK for Android. You can download it here depending on the platform you are using to develop:

Download Parse SDK for Android

Download Parse SDK for Xamarin

 

Then, you have to update your app to connect to https://parseapi.back4app.com instead of https://api.parse.com. You need to use one of the codes below depending on the platform you are using to develop:

 

Android

Parse.initialize(new Parse.Configuration.Builder(myContext)
    .applicationId("YOUR_APP_ID")
    .clientKey("YOUR_CLIENT_KEY")
    .server("https://parseapi.back4app.com")

    ...

    .build()
);

 

Xamarin

ParseClient.Initialize(new ParseClient.Configuration {
    ApplicationId = "YOUR_APP_ID",
    WindowsKey = "YOUR_DOTNET_KEY",
    Server = "https://parseapi.back4app.com"
});

 

It’s done! You only need to publish the new version of your Android app!

Once your users have updated the app to the new version, they will start requesting back{4}app’s API instead of parse.com one.

Not updated apps will continue connecting in parse.com API, but DON’T WORRY! It will nicely work until January 28, 2017. Because your database was successfully migrated to back{4}app, both parseapi.back4app.com and api.parse.com will read/update the data into the same database: your new migrated database in the back{4}app’s servers. Learn more.