本文整理汇总了Java中net.hockeyapp.android.UpdateManager类的典型用法代码示例。如果您正苦于以下问题:Java UpdateManager类的具体用法?Java UpdateManager怎么用?Java UpdateManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UpdateManager类属于net.hockeyapp.android包,在下文中一共展示了UpdateManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: registerUpdateManager
import net.hockeyapp.android.UpdateManager; //导入依赖的package包/类
public static void registerUpdateManager(Activity context){
final String hockeyappToken = KeyUtilities.getToken(context, "hockeyapp");
if (hockeyappToken != null && !hockeyappToken.equals("")) {
if (!BuildConfig.DEBUG) {
UpdateManager.register(context, hockeyappToken);
}
}
}
示例2: checkForUpdates
import net.hockeyapp.android.UpdateManager; //导入依赖的package包/类
private void checkForUpdates() {
// add this to your main activity's onCreate()-callback
MetricsManager.register(getApplication());
// Remove this for store builds!
UpdateManager.register(this);
}
示例3: onActivityResumed
import net.hockeyapp.android.UpdateManager; //导入依赖的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);
}
示例4: checkForUpdates
import net.hockeyapp.android.UpdateManager; //导入依赖的package包/类
private void checkForUpdates() {
// Remove this for store builds
if (!BuildConfig.FLAVOR.equals(DCConstants.BUILD_FALVOR_LIVE) && !BuildConfig.BUILD_TYPE.equals(DCConstants.BUILD_TYPE_DEBUG)) {
UpdateManager.register(this);
}
}
示例5: unregisterManagers
import net.hockeyapp.android.UpdateManager; //导入依赖的package包/类
private void unregisterManagers() {
UpdateManager.unregister();
}
示例6: checkForUpdates
import net.hockeyapp.android.UpdateManager; //导入依赖的package包/类
public static void checkForUpdates(Activity context) {
if (BuildVars.DEBUG_VERSION) {
UpdateManager.register(context, BuildVars.DEBUG_VERSION ? BuildVars.HOCKEY_APP_HASH_DEBUG : BuildVars.HOCKEY_APP_HASH);
}
}
示例7: unregisterUpdates
import net.hockeyapp.android.UpdateManager; //导入依赖的package包/类
public static void unregisterUpdates() {
if (BuildVars.DEBUG_VERSION) {
UpdateManager.unregister();
}
}
示例8: checkForUpdates
import net.hockeyapp.android.UpdateManager; //导入依赖的package包/类
/**
* HockeyApp app management event handler
*/
private void checkForUpdates() {
// Remove this for store builds!
UpdateManager.register(this);
}
示例9: unregisterManagers
import net.hockeyapp.android.UpdateManager; //导入依赖的package包/类
/**
* HockeyApp app management event handler
*/
private void unregisterManagers() {
UpdateManager.unregister();
}
示例10: checkForUpdates
import net.hockeyapp.android.UpdateManager; //导入依赖的package包/类
public static void checkForUpdates(Activity ctx) {
if (!BuildConfig.DEBUG) {
UpdateManager.register(ctx);
}
}
示例11: unregisterManagers
import net.hockeyapp.android.UpdateManager; //导入依赖的package包/类
public static void unregisterManagers() {
if (!BuildConfig.DEBUG) {
UpdateManager.unregister();
}
}
示例12: checkForUpdates
import net.hockeyapp.android.UpdateManager; //导入依赖的package包/类
private void checkForUpdates() {
// Remove this for store builds!
UpdateManager.register(this);
}
示例13: checkForUpdates
import net.hockeyapp.android.UpdateManager; //导入依赖的package包/类
private void checkForUpdates() {
if (BuildConfig.DEBUG) {
UpdateManager.register(this);
}
}
示例14: checkForUpdates
import net.hockeyapp.android.UpdateManager; //导入依赖的package包/类
private void checkForUpdates() {
UpdateManager.register(cordova.getActivity(), appId);
}
示例15: checkForUpdates
import net.hockeyapp.android.UpdateManager; //导入依赖的package包/类
public void checkForUpdates(Activity activity)
{
UpdateManager.register(activity, appID);
}