It is very easy to set up parse.com to anroid project.
After setting up, you can create your own backend very easily.
First of all define dependency on gradle file
dependencies {
compile 'com.parse:parse-android:1.10.2'
}
After this, you need to initialize parse on Application Class.
APPLICATION_ID is the application id of your project at parse.com
CLIENT_KEY is the client key of your project at parse.com
public class TestApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
if (MyUtility.isConnected(this)) {
// initializing parse here
Parse.enableLocalDatastore(this);
Parse.initialize(this, Constants.APPLICATION_ID, Constants.CLIENT_KEY);
ParseFacebookUtils.initialize(this);
}
}
}
Hope, this will help you.
0 Comment(s)