使用数据断点 数据写断点 数据读断点 bkptdata –r 0x2000 bkptdata –w 0x2000 数据访问断点 bkptdata -wr 0x2000
2022-03-11 23:10:06 2.66MB ARM 嵌入式开发 开发环境
1
根据网上寻找的资料,加上自己的整合,打包的一个Android多线程下载。可以实现断点下载,暂停继续取消下载,能够显示现在已完成大小,文件大小,完成度,下载速度等。使用方法如下: public class MainActivity extends Activity implements OnClickListener,DownloadListener{ private static final String TAG = "MainActivity"; private static final String SD_PATH = Environment.getExternalStorageDirectory().getPath(); private boolean isPause = false; private MultiThreadDownload multiThreadDownload ; private Button buttonDownload; private Button buttonCancel; private TextProgressBar progressBarTest;//可以使用普通的进度,该进度条是可以显示现在完成度 private TextView textInfo; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main);//布局文件就是两个简单的按钮一个用于暂停继续下载,一个用于取消任务,还有一个文本用于显示已完成,文件大小,下载完成度,下载速度等信息以及一个进度条。 //http://d1.apk8.com:8020/game/plantsvszombies2.apk buttonDownload = (Button)findViewById(R.id.buttonDownload); buttonDownload.setText("单击下载"); buttonDownload.setOnClickListener(this); progressBarTest = (TextProgressBar) findViewById(R.id.progressBarTest); textInfo = (TextView) findViewById(R.id.textInfo); buttonCancel = (Button) findViewById(R.id.buttonCancel); buttonCancel.setOnClickListener(this); } @Override public void onClick(View v) { String downloadUrl = "http://dldir1.qq.com/invc/qqpinyin/QQInput4.1_1133(1001).apk"; String savePath = SD_PATH+File.separator+"downloadHelper"+File.separator; String fileName = "QQInput.apk"; switch(v.getId()){ case R.id.buttonDownload: if(!isPause){ multiThreadDownload = new MultiThreadDownload(MainActivity.this,downloadUrl, savePath, fileName, this); multiThreadDownload.start(); buttonDownload.setText("下载..."); isPause = true; }else{ buttonDownload.setText("暂停..."); isPause = false; multiThreadDownload.onPause(); multiThreadDownload = null; } break; case R.id.buttonCancel: if(multiThreadDownload==null){ multiThreadDownload = new MultiThreadDownload(MainActivity.this,downloadUrl, savePath, fileName, this); } Log.d(TAG, ""+multiThreadDownload.isDownload()); if(multiThreadDownload.isDownload()){ multiThreadDownload.onCancel(); isPause = false; } multiThreadDownload = null; break; } } private Handler multiHandler = new Handler(){ @Override public void handleMessage(Message msg) { super.handleMessage(msg); if(msg.what==1){ Bundle data = msg.getData(); float downloadSpeed = data.getFloat("downloadSpeed"); boolean speedHigh = false; if(downloadSpeed>500){ speedHigh = true; downloadSpeed/=1024; } progressBarTest.setProgress(data.getInt("completedSize")); textInfo.setText(String.format("已完成:%.2fMB", data.getInt("completedSize")/1024f/1024)+"/"+ String.format("总大小:%.2fMB", data.getInt("fileSize")/1024f/1024)+"\n"+ String.format("进度:%.2f%%", data.getBoolean("isCompleted")?100.00:data.getFloat("downloadPercent"))+"/"+ String.format(speedHigh?"速度:%.2fM/S":"速度:%.2fKB/S", downloadSpeed)); if(data.getBoolean("isCompleted")){ buttonDownload.setText("下载完成"); textInfo.setText("下载完成"); } } } }; @Override public void onDownloading(boolean isCompleted,boolean isPause,boolean isCancel,int fileSize,int completedSize,int downloadedSize,float downloadPercent, float downloadSpeed) { Log.d("MainActivity", isCompleted+"||"+isPause+"||"+completedSize+"||"+downloadedSize+"||"+downloadPercent+"||"+downloadSpeed); Message message = Message.obtain(); message.what = 1; Bundle data = new Bundle(); data.putBoolean("isCancel", isCancel); data.putBoolean("isCompleted", isCompleted); data.putInt("fileSize", fileSize); data.putInt("completedSize", completedSize); data.putInt("downloadedSize", downloadedSize); data.putFloat("downloadPercent", downloadPercent); data.putFloat("downloadSpeed", downloadSpeed); message.setData(data); multiHandler.sendMessage(message); } @Override public void onBeforeDownload(boolean isCompleted,boolean isPause,boolean isCancel,int fileSize){ progressBarTest.setMax(fileSize); } @Override public void onAfterDownload(boolean isCompleted,boolean isPause,boolean isCancel,int fileSize){ } @Override public void onPause(boolean isCompelted,boolean isPause,boolean isCancel,int fileSize,int completedSize,int downloadedSize,float downloadPercent,float downloadSpeed){ textInfo.setText("暂停..."); Log.d(TAG, "暂停..."); } @Override public void onCancelDownload(){ progressBarTest.setProgress(0); textInfo.setText("下载取消"); buttonDownload.setText("重新下载"); } }
2022-03-10 19:42:52 22KB Android 多线程 下载
1
asp.net利用webupload文件上传,支持断点,分片,并发 1积分1积分1积分1积分1积分1积分1积分1积分1积分
2022-03-10 10:13:56 227KB 文件断点上传
1
9、设计调试—断点设置 什么时候调试? 编译失败 不正确或意外的仿真结果 支持两种类型的断点 在源代码窗口设置断点 Toggles – 再次点击删除断点 没有断点数量的限制 用 bp 命令 bp 条件断点 when when {b=1 and c/=0} 也可用 bp 命令 bp {if{$now/=100}then{cont}}
2022-03-03 09:15:01 1.08MB MODELSIM培训
1
自测可以使用的 前台页面是H5请求页面(必须为H5页面),后台是JAVA写的,idea可直接导入项目运行,eclipse用户需要自行调整文件结构; 支持断点续传,后续会写多线程断点续传,资源仅供学习交流使用,欢迎留言评论,
1
硬件断点和软件断点的优缺点 硬件断点:数目受EmbeddedICE中的Watchpoint数目的限制;但是,可以在任何地方设置断点。 软件断点:数目不受限制,但是,软件断点是通过替换系统的断点地址的指令实现的,所以,软件断点只能在可写的存储器的地址中设置(比如:RAM),而不能在ROM(比如:Flash)中设置。
2022-02-14 13:32:22 3.39MB PPT
1
VEH-硬件断点+dll劫持内存补丁vs2008源码
2022-02-13 16:22:00 22KB VEH硬件断点
1
Geoda操作说明精华整理均为自己学习整理,基本涵盖论文所需全部操作,包括LISA集聚图、莫兰散点图、自然断点图、四分位数图、空间回归分析等等另赠送Geoda英文手册中文翻译版本!(有详细的例子数据,可跟着跑一遍) 还有Geoda权重矩阵构建,包括0 1矩阵,k阶矩阵,距离矩阵等等,还有本人整理的gal权重矩阵数据和gwt权重矩阵数据转为stata可是别的dta数据!! 还有Geodaspace软件安装包,以及GeoDaSpace操作讲解视频在GeoDaSpace软件中可以进行空间自相关检验以及控制异方差等,具体方法包括如下: .OLS 2SLS .GM/GMM spatial error •GM/GMM spatial lag GM/GMM spatial lag and erron with options for: .spatial and non-spatial diagnostics •non-spatial endogenous variables heteroskedasticity/HAC and these spatial weights: •contiguity d
2022-02-09 16:04:33 168.14MB Geoda 空间计量 权重矩阵 Geodaspace
python ftp断点上传下载,支持主、从模式断点上传及下载
2022-02-02 22:58:55 12KB python ftp ftp 断点上传下载
1
android studio 最新smalidea-0.06,解决无法下断点问题
2022-01-28 09:05:55 5.94MB android studio android android-studio
1