On Mon, May 25, 2009 at 4:01 PM, Moons <moone...@gmail.com> wrote: > > Hello Marco. > Altough I understood what you said, I am not very good with > FileDescriptors. > So you mean that I can't have a File descriptor for a raw resource in > my APK?
Correct. An APK file is essentially a ZIP file, and your raw resources exist only within the zip file, not as separate files. Therefore, when you get a file descriptor for a resource, what you're really getting is a file desciptor for the apk, along with the position within the apk, i.e. offset and length. This is why openRawResourceFd() returns an AssetFileDescriptor, not a FileDescriptor. --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---