Hi all,
I've updated to SDK 1.6 and created the new AVD and emulator sdcard
image file sucesssfully.
I'm using following code to store binary file in sdcard:
---------
File file = new File("sdcard/mypackage.folder1");
if(!file.exists() && file.mkdir())
{
file = new File('myfile.bin');
if(!file.exists())
file.createNewFile();
}
FileOutputStream stream = new FileOutputStream('myfile.bin');
objectOut = new ObjectOutputStream(new BufferedOutputStream
(stream));
objectOut.writeObject(data);
-------------------
Exactly the same code is working properly with SDK 1.5.
For some reason file.mkdir( ) always returns false.
Does anybody got such problem?
Thanks in advance,
Evgeny
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---