Back to project page Android.Parse.
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.
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); } }