Thank you for the suggestion. Unfortunately this works only for txt, html and image files. Most of my contents are pdf, docs, ppt, and zip files. And the location.href doesn't work with these files.
Another problem is that the opened files are then visualized fullscreen but no user interaction is possible. The user cannot save the file. He/She can only go back and when he/she does the application is reloaded or the application exists.
Is it possible somehow to perform and ajax call, setting some cookies and download the content locally on the sdcard? Then once the file is downloaded I would need to open it by starting an external application.