1. 如果我们要想读写数据到SD卡中,首先必须知道SD的路径: File file = new File(Environment.getExternalStorageDirectory(),"info.txt"); FileOutputStream fos = new FileOutputStream(file);//打开输出流,相应的路径下创建文件info.txt fos.write("This is a good Boy".getBytes()); //pub
1. 如果我们要想读写数据到SD卡中,首先必须知道SD的路径: File file = new File(Environment.getExternalStorageDirectory(),"info.txt"); FileOutputStream fos = new FileOutputStream(file);//打开输出流,相应的路径下创建文件info.txt fos.write("This is a good Boy".getBytes()); //pub
Android studio教程:[4]真机测试 1.连不上手机 Android Studio识别不了手机(最后还是恢复成勾中的状态),重启,Android Studio连接真机没反应? 2.连上手机之后编译失败 Error:Could not determine the dependencies of task ':app:transformClassesWithInstantRunForDebug'.> In order to use Instant Run with this device