<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.passionbean.fitmi"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<application
android:allowBackup="true"
2. 建立file
File albumDir = new File(
Environment.getExternalStoragePublicDirectory(
Environment.DIRECTORY_PICTURES
),
"FitMi"
);
if(albumDir.exists() == false)
{
albumDir.mkdir();
}
File imageFile = new File(albumDir.getPath(), "test.jpg");
沒有留言:
張貼留言