[android-developers] Re: problems with fopen in native code
Hi Nikolay,
I don't see any crucial differences between the two kinds of files. In
fact, for those bad ones, I can even sometimes open them correctly.
Strange!!!! Things are just un-deterministic. I checked errno, and the
message is "No such file or directory" (but the files are definitely
there).
Frank
On Jun 14, 9:52 am, Nikolay Elenkov <nikolay.elen...@gmail.com> wrote:
> On Wed, Jun 15, 2011 at 1:42 AM, Frank <frank.android....@gmail.com> wrote:
> > Hi All,
>
> > I am experiencing a strange problem of using fopen in native code. I
> > have a few files in /mnt/sdcard/Download and all of them have -rw
> > privileges. However, when I call my native function which in turns
> > uses fopen to open them, I got null returns for some files, but valid
> > returns for others. Why is that? Any insights? Thanks.
>
> The SD card uses FAT, so permissions shouldn't really matter.
> Check errno in your native code to see the actual error.
> What is the difference between the files that are OK and the
> ones that are not?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home