Eclipe, " Android", " Android", AVD, , " " , SD- , ": 256 512 1024" , " ", "". "Run Configuration" AVD-, AVD , SD- "".
.
SD-, :
:
1) Android .
2) , , .
3) , SD-:
File sdCard = Environment.getExternalStorageDirectory();
4) , :
File dir = new File (sdcard.getAbsolutePath() + "/folder1/folder2");
dir.mkdirs();
File file = new File(dir, "example_file");
5) "/folder1/folder2" , . , . , "example_file" , .
6) SD-:
FileOutputStream f = new FileOutputStream(file);
, 7:
Save the file, then compile it and test the application using the Android emulator software or device.
It will work !!!; -)
source
share