package a.a;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ProgressBar;
public class a extends Activity {
Button b;
OutputStream output;// 输入出流
ProgressBar bar;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
b = (Button) findViewById(R.id.btn);
bar = (ProgressBar) findViewById(R.id.bar);
b.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
down();
文件下载 进度条
最新推荐文章于 2024-05-09 09:36:35 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)