本文整理汇总了Java中com.avos.avoscloud.AVOSCloud.setDebugLogEnabled方法的典型用法代码示例。如果您正苦于以下问题:Java AVOSCloud.setDebugLogEnabled方法的具体用法?Java AVOSCloud.setDebugLogEnabled怎么用?Java AVOSCloud.setDebugLogEnabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.avos.avoscloud.AVOSCloud
的用法示例。
在下文中一共展示了AVOSCloud.setDebugLogEnabled方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initAVSDK
import com.avos.avoscloud.AVOSCloud; //导入方法依赖的package包/类
private void initAVSDK(Context context) {
Map map = this.getAppInfo();
if(map != null && map.get("appId") != null && map.get("appKey") != null) {
// 初始化应用信息
String appId = map.get("appId").toString();
String appKey = map.get("appKey").toString();
AVOSCloud.initialize(context, appId, appKey);
// 启用崩溃错误统计
AVAnalytics.enableCrashReport(context.getApplicationContext(), true);
AVOSCloud.setLastModifyEnabled(true);
AVOSCloud.setDebugLogEnabled(true);
//必须要设置默认的通知回调或者订阅一个频道,否则接收不到通知
mRNPushNotificationHelper = new RNPushNotificationHelper(this.mApplication);
PushService.setDefaultPushCallback(context.getApplicationContext(), mRNPushNotificationHelper.getMainActivityClass());
//this.subscribeChannel("public");
// 保存 installation 到服务器
AVInstallation.getCurrentInstallation().saveInBackground(new SaveCallback() {
public void done(AVException e) {
String installationId = AVInstallation.getCurrentInstallation().getInstallationId();
sendRegistrationToken(installationId);
}
});
}
}
示例2: onCreate
import com.avos.avoscloud.AVOSCloud; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
Crasheye.init(this, "0b24e040");//接入crasheye
// 初始化参数依次为 this, AppId, AppKey
AVOSCloud.initialize(this,"S0QwaXok0D25AhW1PHz5POw6-gzGzoHsz","sJTJwppz8IOiPeVvKYNqIygU");
// 放在 SDK 初始化语句 AVOSCloud.initialize() 后面,只需要调用一次即可
AVOSCloud.setDebugLogEnabled(true);
}
示例3: onCreate
import com.avos.avoscloud.AVOSCloud; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
UmengConfig();
init();
// 初始化参数依次为 this, AppId, AppKey
AVOSCloud.initialize(this,"AtwJtfIJPKQFtti8D3gNjMmb-gzGzoHsz","spNrDrtGWAXP633DkMMWT65B");
MessageHandler msgHandler = new MessageHandler(this);
AVIMMessageManager.registerMessageHandler(AVIMTextMessage.class, msgHandler);
AVIMClient.setClientEventHandler(LeanchatClientEventHandler.getInstance());
AVOSCloud.setDebugLogEnabled(true);
// CrashReport.initCrashReport(getApplicationContext(), "注册时申请的APPID", false);
}
示例4: AVInit
import com.avos.avoscloud.AVOSCloud; //导入方法依赖的package包/类
public static void AVInit(Context ctx) {
// 注册子类
AVObject.registerSubclass(Images.class);
AVObject.registerSubclass(Shot.class);
AVObject.registerSubclass(PlaidItem.class);
AVOSCloud.setDebugLogEnabled(true);
// 初始化应用 Id 和 应用 Key,您可以在应用设置菜单里找到这些信息
AVOSCloud.initialize(ctx, "x7H9QGolRK3CWPY78NhwNoX1-gzGzoHsz",
"QMaBTdqwLKzetgIG21dijLNA");
// 启用崩溃错误报告
AVAnalytics.enableCrashReport(ctx, true);
AVOSCloud.setLastModifyEnabled(true);
mContext=ctx;
}
示例5: onCreate
import com.avos.avoscloud.AVOSCloud; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
AVOSCloud.setDebugLogEnabled(true);
AVOSCloud.initialize(this,"krl29y0N0wU3dMel6k8Kd2Hq","aiyTuVQwSb8uTI0NpYhmVGVV");
}
示例6: onCreate
import com.avos.avoscloud.AVOSCloud; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
mApp = this;
AVOSCloud.initialize(this, "gDpARhub8jcfHz7vYKGsDhP9-gzGzoHsz", "gvbvf4DiEbIest3NLWocwT3s");
//AVOSCloud.initialize(this, "pySLrj5CnOhCxhUE5bK7OBUn-gzGzoHsz", "H2hUpKhbI3MGBpsoXfi8F0LS");
//启动消息推送服务
PushService.setDefaultPushCallback(this, MainActivity.class);
//启动即时通信服务
AVIMMessageManager.registerMessageHandler(AVIMTypedMessage.class, new LCIMMessageHandler(this));
PushService.subscribe(this, "public", HomeActivity.class);
AVInstallation.getCurrentInstallation().saveInBackground();
LCChatKit.getInstance().setProfileProvider(CustomUserProvider.getInstance());
AVOSCloud.setDebugLogEnabled(true);
LCChatKit.getInstance().init(getApplicationContext(), APP_ID, APP_KEY);
}
示例7: initLeanCloud
import com.avos.avoscloud.AVOSCloud; //导入方法依赖的package包/类
private void initLeanCloud() {
AVOSCloud.initialize(appContext, ConstantValues.LEANCLOUD_ID, ConstantValues.LEANCLOUD_KEY);
AVAnalytics.enableCrashReport(appContext, true);
AVOSCloud.setDebugLogEnabled(BuildConfig.DEBUG);
}
示例8: AVInit
import com.avos.avoscloud.AVOSCloud; //导入方法依赖的package包/类
public static void AVInit(Context ctx) {
AVOSCloud.setDebugLogEnabled(true);
AVOSCloud.initialize(ctx, "u468p378t89hoh08c5sw54vc1fxkgu4qn3yryp4si3n22sfd",
"jl1yeddvb4swgeamix5h4pyl7errwh3uyinwkj56ukkouuyv");
AVObject.registerSubclass(Note.class);
}