Great! Thank you very much! On Tue, Sep 22, 2009 at 2:25 PM, Panut Sunyakorn <[email protected]> wrote:
> > <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> > > 2009/9/22 Evgeny V <[email protected]>: > > 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 > > > > > > > > > -- > Panut Sunyakorn > 087-800-3456 > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

