本人先在 终端设备的 /mnt/flash/aa/你好/啊啊 创建好了文件夹,
代码里面
String filepath = "/mnt/flash/aa/你好/啊啊/";
File f=new File(filepath);
if (f.exists()) {
System.out.println(f+ " is existed.");
} else {
System.out.println(f+ " not is existed");
f.mkdirs();
}运行后log 显示" not is existed ",而重新 创建了 乱码的文件目录。这是什么原因呢?希望高手指点,谢谢!
代码里面
String filepath = "/mnt/flash/aa/你好/啊啊/";
File f=new File(filepath);
if (f.exists()) {
System.out.println(f+ " is existed.");
} else {
System.out.println(f+ " not is existed");
f.mkdirs();
}运行后log 显示" not is existed ",而重新 创建了 乱码的文件目录。这是什么原因呢?希望高手指点,谢谢!
解决方案 »
- 安卓入门书求推荐
- flipper的showNext和setDisplayedChild同时使用会冲突吗?
- webview点击动态url会出现html源的问题
- 怎么实现点心省电窗口widget展开的功能
- ListView添加跟多的Item
- 两个ListActivity不兼容么?
- Android 視訊 RTSP URL
- viewpager上listview报空指针错误,求助啊!
- android listview中多个edittext监听取值
- android studio 3.0 打开其他人的项目怎么配置build.gradle
- 高手帮个忙,小弟出学
- GestureOverlayView自动删除输入的手势
android编码规范是代码中不要有中文的