I think a FileChannel<https://developer.android.com/reference/java/nio/channels/FileChannel.html>is quite close to what you need. Get the FileChannel from a RandomAccessFile<https://developer.android.com/reference/java/io/RandomAccessFile.html>then you can use the Channels<https://developer.android.com/reference/java/nio/channels/Channels.html>class to convert it to an InputStream for the parser.
The problem is getting the *right* positions from within the Handler. I've no idea if its possible, its depends on the parser internals I guess (eg. buffering). Sexta-feira, 15 de Junho de 2012 1:56:41 UTC+1, r4f4 escreveu: > > > Use Document, which stores the data in memory, allowing you to traverse > the > > hierarchy in any order. > > That could work, but I forgot to mention that the file has something > like 8 Mb. > > Isn't that too big to keep in memory ? > > -- 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

