本文整理汇总了Java中com.bugsense.trace.BugSenseHandler.addCrashExtraData方法的典型用法代码示例。如果您正苦于以下问题:Java BugSenseHandler.addCrashExtraData方法的具体用法?Java BugSenseHandler.addCrashExtraData怎么用?Java BugSenseHandler.addCrashExtraData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.bugsense.trace.BugSenseHandler
的用法示例。
在下文中一共展示了BugSenseHandler.addCrashExtraData方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import com.bugsense.trace.BugSenseHandler; //导入方法依赖的package包/类
public static void init(Context ctx){
context = ctx;
preferences = ctx.getSharedPreferences(CHAT_SDK_SHRED_PREFS, Context.MODE_PRIVATE);
VolleyUtils.init(ctx);
DaoCore.init(ctx);
BFacebookManager.init(context.getString(R.string.facebook_id), ctx);
//Bug Sense
if (BNetworkManager.BUGSENSE_ENABLED && StringUtils.isNotEmpty( context.getString(R.string.bug_sense_key) )) {
BugSenseHandler.initAndStartSession(ctx, context.getString(R.string.bug_sense_key));
BugSenseHandler.addCrashExtraData("Version", BuildConfig.VERSION_NAME);
}
}
示例2: onCreate
import com.bugsense.trace.BugSenseHandler; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
if (LOG) Log.d(TAG, "onCreated");
// registerVolumeButtonReceiver();
BugSenseHandler.initAndStartSession(CallerFlashlight.this, "2b2cf28e");
prefs = PreferenceManager.getDefaultSharedPreferences(this);
prefs.registerOnSharedPreferenceChangeListener(this);
editor = prefs.edit();
commit = new Runnable() {
public void run() {
if (LOG) Log.d(TAG, "Committing preferences");
savePreferences();
}
};
loadPreferences();
BugSenseHandler.addCrashExtraData("driver", String.valueOf(getType()));
}
示例3: onCreate
import com.bugsense.trace.BugSenseHandler; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
if (LOG) Log.d(TAG, "onCreated");
// registerVolumeButtonReceiver();
BugSenseHandler.initAndStartSession(CallerFlashlight.this, "00000000");
prefs = PreferenceManager.getDefaultSharedPreferences(this);
prefs.registerOnSharedPreferenceChangeListener(this);
editor = prefs.edit();
commit = new Runnable() {
public void run() {
if (LOG) Log.d(TAG, "Committing preferences");
savePreferences();
}
};
loadPreferences();
BugSenseHandler.addCrashExtraData("driver", String.valueOf(getType()));
BugSenseHandler.addCrashExtraData("who", this.getPackageName());
}
示例4: onCreate
import com.bugsense.trace.BugSenseHandler; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
if (LOG) Log.d(TAG, "onCreated");
// registerVolumeButtonReceiver();
BugSenseHandler.initAndStartSession(CallerFlashlight.this, "2b2cf28e");
prefs = PreferenceManager.getDefaultSharedPreferences(this);
prefs.registerOnSharedPreferenceChangeListener(this);
editor = prefs.edit();
commit = new Runnable() {
public void run() {
if (LOG) Log.d(TAG, "Committing preferences");
savePreferences();
}
};
loadPreferences();
BugSenseHandler.addCrashExtraData("driver", String.valueOf(getType()));
BugSenseHandler.addCrashExtraData("who", this.getPackageName());
}
示例5: onActivityStart
import com.bugsense.trace.BugSenseHandler; //导入方法依赖的package包/类
public static synchronized void onActivityStart(Context context, String activityId) {
FlurryAgent.setUseHttps(true);
FlurryAgent.onStartSession(context, mFlurryApiKey);
FlurryAgent.setUserId(getUserId(context));
FlurryAgent.onEvent(activityId);
FlurryAgent.onPageView();
BugSenseHandler.addCrashExtraData("userId", getUserId(context));
addBreadcrumb(activityId);
}
示例6: onServiceStart
import com.bugsense.trace.BugSenseHandler; //导入方法依赖的package包/类
public static synchronized void onServiceStart(Context context) {
FlurryAgent.setUseHttps(true);
FlurryAgent.onStartSession(context, mFlurryApiKey);
FlurryAgent.setUserId(getUserId(context));
BugSenseHandler.addCrashExtraData("userId", getUserId(context));
}
示例7: addBreadcrumb
import com.bugsense.trace.BugSenseHandler; //导入方法依赖的package包/类
private static void addBreadcrumb(String breadcrumb) {
mActionHistory.add(breadcrumb);
/* Add this to the bugsense handler since native breadcrumbs are not available
* in the free and open source plans (this emulates the BugSense breadcrumbs feature). */
BugSenseHandler.addCrashExtraData("history", Utils.getCSV(mActionHistory, " -> "));
}