hi EvgenyV  /  all

even i am facing the same problem ....

in my case also file.mkdirs( ) is always returning false ! its
happening since i upgraded to sdk version 1.6 :(

does anyone has any solution for this ?

thanks in advance !
~pp


On Sep 22, 4:21 pm, EvgenyV <[email protected]> wrote:
> Hi all,
>
> I've updated toSDK1.6and created the new AVD andemulatorsdcard
> image file sucesssfully.
>
> I'm using following code to store binary file insdcard:
> ---------
>       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 withSDK1.5.
>
> For some reason file.mkdir( ) always returns false.
>
> Does anybody got suchproblem?
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to