Back to project page FaceTag-Android.
The source code is released under:
GNU General Public License
If you think the Android project FaceTag-Android 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 edu.grinnell.facetag.parse; /*w w w.ja v a 2s . c o m*/ import android.app.Application; import com.nostra13.universalimageloader.core.DisplayImageOptions; import com.nostra13.universalimageloader.core.ImageLoader; import com.nostra13.universalimageloader.core.ImageLoaderConfiguration; import com.parse.Parse; import com.parse.ParseFacebookUtils; import com.parse.ParseInstallation; import com.parse.ParseObject; import com.parse.PushService; import edu.grinnell.facetag.GameScreenActivity; public class PrsApplication extends Application { @Override public void onCreate() { super.onCreate(); //Register Parse ParseObject.registerSubclass(PhotoTag.class); ParseObject.registerSubclass(Game.class); /* * Fill in this section with your Parse credentials */ Parse.initialize(this, "97s1dXeGVg72YmhWjZVFXQvWFILwyyV78pftvQBe", "isrQzRX1HkVQyuqnab3m8DGEIWWcpKAt2iJ0CtFu"); ParseFacebookUtils.initialize("551206871642297"); PushService.setDefaultPushCallback(this, GameScreenActivity.class); ParseInstallation.getCurrentInstallation().saveInBackground(); /* * For more information on app security and Parse ACL: * https://www.parse.com/docs/android_guide#security-recommendations */ /* * ParseACL defaultACL = new ParseACL(); * * defaultACL.setPublicReadAccess(true); * * ParseACL.setDefaultACL(defaultACL, true); */ // Create global configuration and initialize ImageLoader with this // configuration DisplayImageOptions defaultOptions = new DisplayImageOptions.Builder() .cacheInMemory(true).cacheOnDisc(true).build(); ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder( getApplicationContext()).defaultDisplayImageOptions( defaultOptions).build(); ImageLoader.getInstance().init(config); } }