设为首页 加入收藏

TOP

IntentService实现下载(二)
2015-07-24 07:12:22 来源: 作者: 【 】 浏览:103
Tags:IntentService 实现 下载
;
values.put(DataBaseUtil.DOWNLOAD_FILE_CURRENT_SIZE, currentSize);
values.put(DataBaseUtil.DOWNLOAD_FILE_TOTAL_SIZE, fileLength);
values.put(DataBaseUtil.DOWNLOAD_FINISHED, false);
values.put(DataBaseUtil.CREATE_FILE_DATE, new Date().toString());
resolver.update(uri, values, "name=?", new String[] { fileName });
}

/**
*
* 完成下载
*
*

detail comment
*@param currentSize
*@see
*@since
*
*/
private void finishProgress() {
ContentValues values = new ContentValues();
values.put(DataBaseUtil.DOWNLOAD_FILE_CURRENT_SIZE, fileLength);
values.put(DataBaseUtil.DOWNLOAD_FINISHED, true);

resolver.update(uri, values, "name=?", new String[] { fileName });
}
}

??
首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇HDU1006、3037、2084、1176题解 下一篇Surrounded Regions-leetcode

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: