Reputation: 303
I'm having some trouble getting to the ICS emulator to dump data into files (or even create them). I've built the emulator with 'rw' permission and verified that 'adb push' does work (with read only permission, this used to fail). The emulator just seems to run this piece of code but never creates the files. I've tried creating in /system/etc and /mnt/sdcard (and using my own sdcard.img file in the boot command). Any idea how I can get past this?
Upvotes: 0
Views: 1806
Reputation: 12048
try:
f0.flush();
before
f0.close();
to ensure the buffered data is writen do file.
add the following in the catch() part of your code:
catch (IOException e){
e.printStackTrace();
}
this will print to the catlog the what is the issue.
Confirm that you have the sdcard ceated in AVD Manager. Open it and check the following:
Upvotes: 1