当前位置: 首页>>代码示例>>Java>>正文


Java Beta.checkUpgrade方法代码示例

本文整理汇总了Java中com.tencent.bugly.beta.Beta.checkUpgrade方法的典型用法代码示例。如果您正苦于以下问题:Java Beta.checkUpgrade方法的具体用法?Java Beta.checkUpgrade怎么用?Java Beta.checkUpgrade使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.tencent.bugly.beta.Beta的用法示例。


在下文中一共展示了Beta.checkUpgrade方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onClick

import com.tencent.bugly.beta.Beta; //导入方法依赖的package包/类
@Override
public void onClick(View view) {
    switch (view.getId()) {
        case R.id.maina_start_service:
            Intent intent = new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS);
            startActivity(intent);
            break;

        case R.id.maina_update:
            Beta.checkUpgrade();
            break;
        case R.id.maina_share:
            ShareUtil.shareLink("http://holoscan.moyansz.com/luoxiang/download.html" , "分享红包辅助" , "微信全自动抢红包助手(注:如果下载连接中有.1后缀,请手动去掉):" , this);
            break;

        default:
            break;
    }
}
 
开发者ID:ynztlxdeai,项目名称:MoneyPackage,代码行数:20,代码来源:MainActivity.java

示例2: doBusiness

import com.tencent.bugly.beta.Beta; //导入方法依赖的package包/类
@Override
protected void doBusiness() {
    BottomNavigationViewHelper.disableShiftMode(navigationView);
    viewpager.setAdapter(new TabAdapter(getSupportFragmentManager(), getFragments()));
    viewpager.setOffscreenPageLimit(3);
    navigationView.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
        @Override
        public boolean onNavigationItemSelected(@NonNull MenuItem item) {
            switch (item.getItemId()) {
                case R.id.tab_main:
                    viewpager.setCurrentItem(0);
                    break;
                case R.id.tab_data:
                    viewpager.setCurrentItem(1);
                    break;
                case R.id.tab_video:
                    viewpager.setCurrentItem(2);
                    break;
                case R.id.tab_more:
                    viewpager.setCurrentItem(3);
                    break;
            }
            return true;
        }
    });

    Beta.checkUpgrade(false, true);

    mainPresenter = new MainPresenter(this, this);
    mainPresenter.clipboard();

    //启动数据更新服务
    Intent intent = new Intent(this, UpdateDataService.class);
    startService(intent);
}
 
开发者ID:NICOLITE,项目名称:Palm300Heroes,代码行数:36,代码来源:MainActivity.java

示例3: clicks

import com.tencent.bugly.beta.Beta; //导入方法依赖的package包/类
@OnClick({R.id.rl_theme, R.id.rl_update, R.id.rl_cache, R.id.rl_check, R.id.switch_theme, R.id.switch_update})
void clicks(View view) {
    switch (view.getId()) {
        case R.id.rl_theme:
            mThemeSwitch.setChecked(!mThemeSwitch.isChecked());
            changeSkin();
            break;
        case R.id.rl_update:
            mUpdateSwitch.setChecked(!mUpdateSwitch.isChecked());
            AppUtils.getInstance().setUpdateConfig(this, mUpdateSwitch.isChecked());
            break;
        case R.id.rl_cache:
            DataCleanManager.cleanCache(this);
            updateCacheTextView();
            Toast.makeText(this, "缓存清理成功", Toast.LENGTH_SHORT).show();
            break;
        case R.id.rl_check:
            Beta.checkUpgrade(true, false);
            break;
        case R.id.switch_theme:
            changeSkin();
            break;
        case R.id.switch_update:
            AppUtils.getInstance().setUpdateConfig(this, mUpdateSwitch.isChecked());
            break;
        default:
            break;
    }
}
 
开发者ID:shenhuanet,项目名称:ZhidaoDaily-android,代码行数:30,代码来源:SettingActivity.java

示例4: onClick

import com.tencent.bugly.beta.Beta; //导入方法依赖的package包/类
@Override
public void onClick(View v) {
    switch (v.getId()) {
        case R.id.btnShowToast:  // 测试热更新功能
            testToast();
            break;
        case R.id.btnKillSelf: // 杀死进程
            android.os.Process.killProcess(android.os.Process.myPid());
            break;
        case R.id.btnLoadPatch: // 本地加载补丁测试
            Beta.applyTinkerPatch(getApplicationContext(), Environment.getExternalStorageDirectory().getAbsolutePath() + "/patch_signed_7zip.apk");
            break;
        case R.id.btnLoadLibrary: // 本地加载so库测试
            TestJNI testJNI = new TestJNI();
            testJNI.createANativeCrash();
            break;
        case R.id.btnDownloadPatch:
            Beta.downloadPatch();
            break;
        case R.id.btnPatchDownloaded:
            Beta.applyDownloadedPatch();
            break;
        case R.id.btnCheckUpgrade:
            Beta.checkUpgrade();
            break;
    }
}
 
开发者ID:BuglyDevTeam,项目名称:Bugly-Android-Demo,代码行数:28,代码来源:MainActivity.java

示例5: onViewClicked

import com.tencent.bugly.beta.Beta; //导入方法依赖的package包/类
@OnClick({R.id.iv_nav_avatar, R.id.tv_nav_name, R.id.tv_nav_private_message,
        R.id.tv_nav_update, R.id.tv_nav_share, R.id.tv_nav_logout, R.id.tv_nav_about,
        R.id.tv_nav_fback, R.id.imgbtn_menusetting, R.id.imgbtn_bell,
        R.id.tv_tongzhi_contont, R.id.tv_tongzhi_title, R.id.tv_notice_maincontent})
public void onViewClicked(View view) {
    switch (view.getId()) {
        case R.id.iv_nav_avatar:
            startActivity(UserInfoActivity.class);
            break;
        case R.id.tv_nav_name:
            startActivity(UserInfoActivity.class);
            break;
        case R.id.tv_nav_private_message:
            mainPresenter.startChat();
            break;
        case R.id.tv_nav_update:
            Beta.checkUpgrade();
            break;
        case R.id.tv_nav_share:
            mainPresenter.share();
            break;
        case R.id.tv_nav_logout:
            final CommonDialog commonDialog = new CommonDialog(context);
            commonDialog
                    .setMessage("确定退出?")
                    .setPositiveButton("是的", new View.OnClickListener() {
                        @Override
                        public void onClick(View v) {
                            RongIM.getInstance().logout();
                            XGPushManager.deleteTag(getApplicationContext(), user.getStudentKH());
                            XGPushManager.registerPush(getApplicationContext(), "*");
                            XGPushManager.unregisterPush(getApplicationContext());
                            startActivity(LoginActivity.class);
                            commonDialog.dismiss();
                            finish();
                        }
                    })
                    .setNegativeButton("再想想", null)
                    .show();
            break;
        case R.id.tv_nav_about:
            startActivity(AboutActivity.class);
            break;
        case R.id.tv_nav_fback:
            startActivity(FeedBackActivity.class);
            break;
        case R.id.imgbtn_menusetting:
            rootView.open();
            break;
        case R.id.imgbtn_bell:
            mainPresenter.startChat();
            break;
        case R.id.tv_tongzhi_title:
        case R.id.tv_tongzhi_contont:
            if (notice != null) {
                Bundle bundle = new Bundle();
                bundle.putLong("noticeId", notice.getId());
                startActivity(NoticeItemActivity.class, bundle);
            }
            break;
        case R.id.tv_notice_maincontent:
            startActivity(NoticeActivity.class);
            break;
    }
}
 
开发者ID:NICOLITE,项目名称:HutHelper,代码行数:66,代码来源:MainActivity.java

示例6: checkUpgrade

import com.tencent.bugly.beta.Beta; //导入方法依赖的package包/类
public static void checkUpgrade(){
    Beta.checkUpgrade();
}
 
开发者ID:ChyengJason,项目名称:NanCanOlympic,代码行数:4,代码来源:App.java

示例7: update

import com.tencent.bugly.beta.Beta; //导入方法依赖的package包/类
@OnClick(R.id.updateTv)
void update() {
    // 参数一:用户手动点击,参数二:有提示
    Beta.checkUpgrade(true, false);
}
 
开发者ID:shenhuanet,项目名称:Ocr-android,代码行数:6,代码来源:UserFragment.java

示例8: check_upgrade

import com.tencent.bugly.beta.Beta; //导入方法依赖的package包/类
public void check_upgrade(View view) {
    Beta.checkUpgrade();
}
 
开发者ID:GitLqr,项目名称:HotFixDemo,代码行数:4,代码来源:MainActivity.java


注:本文中的com.tencent.bugly.beta.Beta.checkUpgrade方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。