Android Open Source - Android.Parse Base Application






From Project

Back to project page Android.Parse.

License

The source code is released under:

MIT License

If you think the Android project Android.Parse listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.iamnbty.android.parse;
//from   www  .  j a v  a 2s.c o m
import android.app.Application;

import com.parse.Parse;
import com.parse.ParseACL;
import com.parse.ParseUser;

public class BaseApplication extends Application {

    private static final String PARSE_APP_ID = "YOUR_APP_ID_HERE";
    private static final String PARSE_CLIENT_KEY = "YOUR_CLIENT_KEY";

    @Override
    public void onCreate() {
        super.onCreate();

        initParse();
    }

    private void initParse() {
        // init Parse
        Parse.initialize(this, PARSE_APP_ID, PARSE_CLIENT_KEY);

        // enable automatic user
        ParseUser.enableAutomaticUser();

        // set default Parse ACL
        ParseACL.setDefaultACL(new ParseACL(), true);
    }

}




Java Source Code List

com.iamnbty.android.parse.ApplicationTest.java
com.iamnbty.android.parse.BaseApplication.java
com.iamnbty.android.parse.activity.MainActivity.java
com.iamnbty.android.parse.fragment.AddFriendFragment.java
com.iamnbty.android.parse.fragment.ViewFriendsFragment.java
com.iamnbty.android.parse.parse.FriendParse.java