文件名称:android mars视频代码 download源码
文件大小:54KB
文件格式:ZIP
更新时间:2015-04-02 09:53:43
文件下载
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); button1 =(Button)findViewById(R.id.Button01); button2 =(Button)findViewById(R.id.Button02); button1.setOnClickListener(new DownTextListener()); button2.setOnClickListener(new DownMP3Listener()); } class DownTextListener implements OnClickListener{ @Override public void onClick(View v) { HttpDownloader loader = new HttpDownloader(); String str = loader.download("http://192.168.2.79:8080/mytomcat/upload/android.txt"); System.out.println(str); }
【文件预览】:
download
----bin()
--------classes.dex(7KB)
--------com()
--------resources.ap_(10KB)
--------download.apk(16KB)
----res()
--------drawable-ldpi()
--------drawable-hdpi()
--------values()
--------drawable-mdpi()
--------layout()
----assets()
----default.properties(363B)
----gen()
--------com()
----proguard.cfg(1KB)
----src()
--------com()
----.project(844B)
----.classpath(280B)
----AndroidManifest.xml(769B)