I am wondering about how to get random access to an android asset. The AssetManager class offers the method "open" and you can pass AssetManager.ACCESS_RANDOM to that method. The documentation says, you kann seek forward and backward in the file (especially seeking backward is what I need), whenn passing ACCESS_RANDOM. However, the open method always returns an InputStream object, no matter which access mode was requested. So my question is: how can I call seek methods on that InputStream that does not offer such methods? To which class must I cast the InputStream? I've been searching the web for that problem for some time now, but I could not find anything that helped me.
Thanks!