Java Code Examples for com.tencent.bugly.beta.Beta#cancelDownload()

The following examples show how to use com.tencent.bugly.beta.Beta#cancelDownload() . 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: BaseApplication.java    From NewFastFrame with Apache License 2.0 5 votes vote down vote up
@Override
public void onClick(View v) {
    int i = v.getId();
    if (i == R.id.tv_view_dialog_common_left) {
        Beta.cancelDownload();
        dialog.dismiss();
    } else if (i == R.id.tv_view_dialog_common_right) {
        DownloadTask downloadTask = Beta.startDownload();
        if (downloadTask.getStatus() == DownloadTask.DOWNLOADING) {
            dialog.dismiss();
        }

    }
}
 
Example 2
Source File: BuglyAgentHelper.java    From xamarin-bugly with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public static void cancelDownload(){
    Beta.cancelDownload();
}