本文整理汇总了Java中net.hockeyapp.android.Tracking类的典型用法代码示例。如果您正苦于以下问题:Java Tracking类的具体用法?Java Tracking怎么用?Java Tracking使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Tracking类属于net.hockeyapp.android包,在下文中一共展示了Tracking类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onResume
import net.hockeyapp.android.Tracking; //导入依赖的package包/类
@Override
protected void onResume() {
super.onResume();
Tracking.startUsage(this);
application.setIsPassedPinScreen(true);
if(!returningFromActivity) {
if(TimeOutUtil.getInstance().isTimedOut()) {
Intent intent = new Intent(MainActivity.this, PinEntryActivity.class);
String navigateTo = getIntent().getStringExtra("navigateTo");
intent.putExtra("navigateTo", navigateTo);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);
intent.putExtra("verified", true);
startActivity(intent);
}
else {
TimeOutUtil.getInstance().updatePin();
}
}
else {
returningFromActivity = false;
}
}
示例2: onResume
import net.hockeyapp.android.Tracking; //导入依赖的package包/类
@Override
protected void onResume() {
super.onResume();
String hockeyAppId = getMetaData("net.hockeyapp.android.appIdentifier");
if (hockeyAppId != null) {
CrashManager.register(this);
Tracking.startUsage(this);
}
}
示例3: onPause
import net.hockeyapp.android.Tracking; //导入依赖的package包/类
@Override
protected void onPause() {
super.onPause();
if (isHockeyAppActive()) {
unregisterManagers();
Tracking.stopUsage(this);
}
}
示例4: onActivityResumed
import net.hockeyapp.android.Tracking; //导入依赖的package包/类
@Override
public void onActivityResumed(final Activity activity) {
final boolean shouldShowUpdates = BuildConfig.DEBUG && !BuildConfig.IS_IDE_BUILD;
final boolean isUpdateActivity = !activity.getClass().equals(UpdateActivity.class);
if (shouldShowUpdates && isUpdateActivity) {
UpdateManager.register(activity, application.getString(R.string.hockey_app_id));
}
Tracking.startUsage(activity);
}
示例5: startTracking
import net.hockeyapp.android.Tracking; //导入依赖的package包/类
private void startTracking() {
if (appId != null) {
Tracking.startUsage(cordova.getActivity());
}
}
示例6: stopTracking
import net.hockeyapp.android.Tracking; //导入依赖的package包/类
private void stopTracking() {
if (appId != null) {
Tracking.stopUsage(cordova.getActivity());
}
}
示例7: onPause
import net.hockeyapp.android.Tracking; //导入依赖的package包/类
@Override
protected void onPause() {
Tracking.stopUsage(this);
super.onPause();
}
示例8: onActivityPaused
import net.hockeyapp.android.Tracking; //导入依赖的package包/类
@Override
public void onActivityPaused(Activity activity) {
Tracking.stopUsage(activity);
}