d100/bbs/home.php?mod=invite&id=62&c=apzrou 
d100/bbs/home.php?mod=invite&id=61&c=akkahk 
d100/bbs/home.php?mod=invite&id=60&c=zhhsor 
d100/bbs/home.php?mod=invite&id=59&c=4ukha8     
d100/bbs/home.php?mod=invite&id=58&c=lgg60m 
d100/bbs/home.php?mod=invite&id=57&c=ymgm3m     
d100/bbs/home.php?mod=invite&id=56&c=n5zhht 
d100/bbs/home.php?mod=invite&id=55&c=huukbh 
d100/bbs/home.php?mod=invite&id=54&c=8yrc1c 
d100/bbs/home.php?mod=invite&id=53&c=stf115 
plorer;
import static com.mime.MIME.MIME_MapTable;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
t.DialogInterface;
t.Intent;
import android.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.AdapterView.OnItemLongClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.TextView;
import android.widget.Toast;
import com.file.R;
public class MainActivity extends Activity implements OnClickListener, OnItemClickListener, OnItemLongClickListener {
    private TextView currentDir;
    private Button btnC;
    private Button btnE;
    private ListView listView;
    private File rootDir;
    private File copyPath;
    private String flag;
    private String startFilePath;
    private String desFilePath;
    private List<File> fileList = new ArrayList<File>();
php文件下载源码    private ProgressDialog progressDialog;
    private int currentLen = 0;
    private long totaLength = 0;
    private Handler messageHandler;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        Create(savedInstanceState);
        setContentView(R.layout.main);
        currentDir = (TextView) findViewById(R.id.currentDir);
        // fileName = (TextView) findViewById(R.id.name);
        btnC = (Button) findViewById(R.id.btnC);
        btnE = (Button) findViewById(R.id.btnE);
        btnC.setOnClickListener(this);
        btnE.setOnClickListener(this);
        listView = (ListView) findViewById(R.id.listView);
        listView.setOnItemClickListener(this);
        listView.setOnItemLongClickListener(this);
        //得到当前线程的Looper实例,由于当前线程是UI线程也可以通过MainLooper()得到
        messageHandler = new Looper());
        if (ExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
            rootDir = ExternalStorageDirectory();
        } else {
            rootDir = RootDirectory();
        }
        loadFiles(rootDir);
    }
    //自定义Handler
    class MessageHandler extends Handler {
        public MessageHandler(Looper looper) {
            super(looper);
        }
        @Override
        public void handleMessage(Message msg) {
            loadFiles(new Text().toString()));
        }
    }
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        MenuInflater inflater = getMenuInflater();
        inflater.u.menu, menu);
        return true;
    }
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        if (ItemId() == wFile) {
            LayoutInflater factory = LayoutInflater.from(MainActivity.this);
            final View view = factory.inflate(ame, null);
            AlertDialog d = new AlertDialog.Builder(MainActivity.this).setCancelable(true).setMessage("文件夹名")
                    .setView(view).setPositiveButton("确定", new DialogInterface.OnClickListener() {
                        @Override
                        public void onClick(DialogInterface dialog, int which) {

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。