hi, On 19 mai, 18:25, LastQuarter <lastquarter0...@gmail.com> wrote: > I don't know how to get random access to a raw ressource. > It is easy to get a FileInputStream from a raw ressource, what about > RandomAccessFile?
on 1st execution of your app, you may copy your resource to the phone filesystem : FileOutputStream fos = this.openFileOutput("file_copy.raw", MODE_PRIVATE); fos.write(content_raw_file); and then create a randomaccessfile from the copy : RandomAccessFile raf = new RandomAccessFile(this.getFilesDir ().getAbsolutePath()+"/file_copy.raw", "r"); --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---