Life is long ......

继续向前 永不停止

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

在编码时,要对sdcard进行写入或删除操作时候要给与WRITER_EXTERNAL_STORAGE权限

在AndroidManifest.xml中加入

<uses-permission android:name=”android.permission.WRITE_EXTERNAL_STORAGE” />

其他权限:

<uses-permission android:name=”android.permission.READ_CONTACTS” />
<uses-permission android:name=”android.permission.WRITE_CONTACTS” />
<uses-permission android:name=”android.permission.VIBRATE” />
<uses-permission android:name=”android.permission.ACCESS_COARSE_LOCATION” />
<uses-permission android:name=”android.permission.INTERNET” />
<uses-permission android:name=”android.permission.SET_WALLPAPER” />
<uses-permission android:name=”android.permission.WRITE_EXTERNAL_STORAGE” />
<uses-permission android:name=”android.permission.SEND_SMS” />
<uses-permission android:name=”android.permission.RECEIVE_SMS” />
<!– We will request access to the camera, saying we require a camera
of some sort but not one with autofocus capability. –>
<uses-permission android:name=”android.permission.CAMERA” />
<uses-feature android:name=”android.hardware.camera” />
<uses-feature android:name=”android.hardware.camera.autofocus” android:required=”false” />
posted on 2010-12-08 11:40  patrickwai  阅读(1249)  评论(0编辑  收藏  举报