<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="mar.android" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVersion="4" /> <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-permission android:name = "android.permission.INTERNET"/> <uses-permission android:name = "android.permission.WRITE_EXTERNAL_STORAGE"/></manifest>
Get the location of the current sdcard
Environment.getExternalStorageDirectory()
Access sdcard permission settings
<uses-permission android:name = "android.permission.WRITE_EXTERNAL_STORAGE"/>
When developing network apps, pay attention to various XML configurations !!! Otherwise, it would be a low-level mistake for half a day !!!