Java 类com.parse.ParseCrashReporting 实例源码

项目:WordCamp-Android    文件:MyApplication.java   
@Override
public void onCreate() {
    super.onCreate();

    ParseCrashReporting.enable(this);
    Parse.initialize(this, BuildConfig.PARSE_APPKEY,
            BuildConfig.PARSE_TOKEN);


    ParsePush.subscribeInBackground("wc", new SaveCallback() {
        @Override
        public void done(ParseException e) {
            if (e == null) {
                Log.e("push", "successfully subscribed to the broadcast channel.");
            } else {
                Log.e("push", "failed to subscribe for push", e);
            }
        }
    });
}
项目:Makadu_Android    文件:ParseApplication.java   
@Override
public void onCreate() {
  super.onCreate();

  // Initialize Crash Reporting.
  ParseCrashReporting.enable(this);

  // Enable Local Datastore.
  Parse.enableLocalDatastore(this);

  // Add your initialization code here
    Parse.initialize(this, "ELhVHncQTjUeE1vB6JrezPlK0wvC0rWj2B79Spha", "xyR5MkJGfdRv1K59zwnBAGy6XtTuwnx2YHLf776s");


  ParseUser.enableAutomaticUser();
  ParseACL defaultACL = new ParseACL();
    ParseUser.getCurrentUser().saveInBackground();
  // Optionally enable public read access.
  defaultACL.setPublicReadAccess(true);
  ParseACL.setDefaultACL(defaultACL, true);


}
项目:event-schedule-android    文件:BaseEventScheduleApp.java   
private void initParse() {
    // Register subclasses for various kinds of Parse Objects.
    ParseObject.registerSubclass(Room.class);
    ParseObject.registerSubclass(Slot.class);
    ParseObject.registerSubclass(Speaker.class);
    ParseObject.registerSubclass(Talk.class);
    ParseObject.registerSubclass(Event.class);
    ParseObject.registerSubclass(Location.class);

    // Initialize Parse with the application ID and client key.
    ParseCrashReporting.enable(this);
    Parse.initialize(this, getParseApplicationId(), getParseClientKey());

    // Setup the listener to handle local notifications for when talks start.
    Favorites.get().addListener(new FavoritesNotificationScheduler(this));
    Favorites.get().addListener(new AnalyticsHelper(getParseEventId()));

    // Read in the favorites from the local disk on this device.
    Favorites.get().findLocally(this);
}
项目:DemocracyLink-Android    文件:DemocracyLinkApplication.java   
public void onCreate()
{
    super.onCreate();

    //connect to the Parse account for this app
    Parse.enableLocalDatastore(this);
    ParseCrashReporting.enable(this);
    Parse.initialize(this, "Pp9unQpK8SoCuXTuQScytLIiwLkFG5kVuY9fXFgC", "yL8DXs5nSGXom0Vy8wkpZWOUg2VkfCcZXw2cizbb");
}
项目:littlefinger    文件:LittleApplication.java   
@Override
public void onCreate() {
    super.onCreate();

    ParseCrashReporting.enable(this);
    Parse.enableLocalDatastore(this);
    Parse.initialize(this, BuildConfig.PARSE_APPLICATION_ID, BuildConfig.PARSE_CLIENT_KEY);

    ParseACL defaultACL = new ParseACL();
    defaultACL.setPublicReadAccess(false);
    defaultACL.setPublicWriteAccess(false);
    ParseACL.setDefaultACL(defaultACL, true);
}