android-http

 URL url = new URL("http://read.pudn.com/downloads86/ebook/331296/StudyC.doc");
System.out.println("25");
BufferedReader buffer = new BufferedReader(
new InputStreamReader(url.openConnection()
.getInputStream()));

while ((line = buffer.readLine()) != null) {
System.out.println(line);

 

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mars.download"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".Download"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

</application>
<uses-sdk android:minSdkVersion="4" />

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
</manifest>

posted @ 2012-09-01 14:31  黑-色-柳—丁  阅读(529)  评论(0编辑  收藏  举报