向sdcard目录写文件时,在1.6的固件上需要申请权限。
在 AndroidManifest.xml 中增加代码:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.example.xxx"
android:versionCode="1"
android:versionName="1.0"
android:debuggable="true">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application ...