本文整理汇总了Java中com.parse.ParseCrashReporting类的典型用法代码示例。如果您正苦于以下问题:Java ParseCrashReporting类的具体用法?Java ParseCrashReporting怎么用?Java ParseCrashReporting使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ParseCrashReporting类属于com.parse包,在下文中一共展示了ParseCrashReporting类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.parse.ParseCrashReporting; //导入依赖的package包/类
@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);
}
}
});
}
开发者ID:aagam-shah,项目名称:WordCamp-Android,代码行数:21,代码来源:MyApplication.java
示例2: onCreate
import com.parse.ParseCrashReporting; //导入依赖的package包/类
@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);
}
开发者ID:Makadu,项目名称:Makadu_Android,代码行数:24,代码来源:ParseApplication.java
示例3: initParse
import com.parse.ParseCrashReporting; //导入依赖的package包/类
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);
}
开发者ID:xebia,项目名称:event-schedule-android,代码行数:21,代码来源:BaseEventScheduleApp.java
示例4: onCreate
import com.parse.ParseCrashReporting; //导入依赖的package包/类
public void onCreate()
{
super.onCreate();
//connect to the Parse account for this app
Parse.enableLocalDatastore(this);
ParseCrashReporting.enable(this);
Parse.initialize(this, "Pp9unQpK8SoCuXTuQScytLIiwLkFG5kVuY9fXFgC", "yL8DXs5nSGXom0Vy8wkpZWOUg2VkfCcZXw2cizbb");
}
开发者ID:DemocracyLink,项目名称:DemocracyLink-Android,代码行数:10,代码来源:DemocracyLinkApplication.java
示例5: onCreate
import com.parse.ParseCrashReporting; //导入依赖的package包/类
@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);
}
开发者ID:n42corp,项目名称:littlefinger,代码行数:14,代码来源:LittleApplication.java
注:本文中的com.parse.ParseCrashReporting类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论