2 baidu 34947800 baidu_34947800 于 2016.05.10 15:42 提问

2015flashcc 画笔工具出现的问题,有大神能提供详细的解决办法吗 50C

图片说明

1个回答

silehaixianghuirenj
silehaixianghuirenj   2016.10.08 01:26

ialog noticeDialog;// 提示有软件更新的对话框
private Dialog downloadDialog;// 下载对话框
private static final String savePath = Environment.getExternalStorageDirectory().getPath()+"/updateDemo/";// 保存apk的文件夹
private static final String saveFileName = savePath
+ "UpdateDemoRelease.apk";
// 进度条与通知UI刷新的handler和msg常量
private ProgressBar mProgress;
private static final int DOWN_UPDATE = 1;
private static final int DOWN_OVER = 2;
private static final int DOWN_FAIL = 3;
private int progress;// 当前进度
private Thread downLoadThread; // 下载线程
private boolean interceptFlag = false;// 用户取消下载
// 通知处理刷新界面的handler
private Handler mHandler = new Handler() {
@SuppressLint("HandlerLeak")
@Override
public void handleMessage(Message msg) {
switch (msg.what) {
case DOWN_UPDATE:
mProgress.setProgress(progress);
break;
case DOWN_OVER:
downloadDialog.cancel();
installApk();
break;
case DOWN_FAIL:
Toast.makeText(mContext, "下载出错", Toast.LENGT

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!