Java Code Examples for com.tencent.bugly.beta.Beta#checkUpgrade()
The following examples show how to use
com.tencent.bugly.beta.Beta#checkUpgrade() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AppSettingActivity.java From DanDanPlayForAndroid with MIT License | 6 votes |
@Override public void onClick(View v) { switch (v.getId()) { case R.id.path_rl: new FileManagerDialog(this, FileManagerDialog.SELECT_FOLDER, path -> { pathTv.setText(path); AppConfig.getInstance().setDownloadFolder(path); }).hideDefault().show(); break; case R.id.version_rl: Beta.checkUpgrade(false, false); break; case R.id.patch_rl: SophixManager.getInstance().queryAndLoadNewPatch(); break; case R.id.about_rl: Intent intent_about = new Intent(AppSettingActivity.this, WebViewActivity.class); intent_about.putExtra("title", "关于我们"); intent_about.putExtra("link", "file:///android_asset/DanDanPlay.html"); startActivity(intent_about); break; case R.id.feedback_rl: launchActivity(FeedbackActivity.class); break; } }
Example 2
Source File: AboutActivity.java From FakeWeather with Apache License 2.0 | 6 votes |
public void onClick(View v) { switch (v.getId()) { case R.id.btn_web_home: WebUtils.openInternal(this, "https://github.com/li-yu/FakeWeather"); break; case R.id.btn_feedback: feedBack(); break; case R.id.btn_check_update: Beta.checkUpgrade(true, false); break; case R.id.btn_share_app: ShareUtils.shareText(this, "来不及了,赶紧上车!https://github.com/li-yu/FakeWeather", "分享到"); break; } }
Example 3
Source File: MainActivity.java From Bugly-Android-Demo with Apache License 2.0 | 6 votes |
@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库测试 NativeCrashJni.getInstance().createNativeCrash(); break; case R.id.btnDownloadPatch: Beta.downloadPatch(); break; case R.id.btnPatchDownloaded: Beta.applyDownloadedPatch(); break; case R.id.btnCheckUpgrade: Beta.checkUpgrade(); break; } }
Example 4
Source File: AboutActivity.java From NewFastFrame with Apache License 2.0 | 5 votes |
@Override public void onClick(View v) { int id = v.getId(); if (id == R.id.rl_activity_about_protocol) { ProtocolActivity.start(this); } else if (id == R.id.rl_activity_about_policy) { } else if (id == R.id.rl_activity_about_encourage) { } else if (id == R.id.rl_activity_about_check_up_grade) { Beta.checkUpgrade(); }else if (id==R.id.rl_activity_about_developer_info){ DeveloperInfoActivity.start(this); } }
Example 5
Source File: MainActivity.java From Bugly-Android-Demo with Apache License 2.0 | 5 votes |
@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; } }
Example 6
Source File: AboutFragment.java From JReadHub with GNU General Public License v3.0 | 4 votes |
@OnClick(R.id.ll_version) void check4Update() { Beta.checkUpgrade(); }
Example 7
Source File: MainActivity.java From HotFixDemo with MIT License | 4 votes |
public void check_upgrade(View view) { Beta.checkUpgrade(); }
Example 8
Source File: BuglyAgentHelper.java From xamarin-bugly with BSD 2-Clause "Simplified" License | 4 votes |
public static void checkUpgrade(){ Beta.checkUpgrade(); }