Hello,

I have a RandomAccessFile in the main activity opened "r" (read only)
and can read from it no problems.

A menu choice from the main Activity launches another Activity (from
an intent set on the MenuItem).  The newly launched Activity
instantiates a RandomFileAccess also with "r" (readonly) on the same
file. The instantiation does NOT throw an exception.

But, in the second activity, when calling .seek() or and read methods
an IOException is thrown.

The same thing happens whether the file remains open or is closed from
the main Activity.

The file is /sdcard/MyFile.

The exception thrown reads:

WARN/System.err(880):     at java.io.RandomAccessFile.openCheck
(RandomAccessFile.java:274)

Does anyone know what this means or where I could look it up?

Thank you!

--~--~---------~--~----~------------~-------~--~----~
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