Writing Resources from filesystem in Android

Posted by Markus on Stack Overflow See other posts from Stack Overflow or by Markus
Published on 2011-01-02T11:53:05Z Indexed on 2011/01/02 14:53 UTC
Read the original article Hit count: 186

Filed under:
|

Hi,

as I need to get a specific Frame from a Website I want to display in an WebView, I decided to grab the .html from the net and save it under file:///data/data//files/file.html. Stroed there I can edit it using regex or String methods.

Now two questions: Is there a way to bind this file to an resource. e.g. to /res/raw/file.html and get it updated dynamically as i edit it? Or can i write the File directly to the resources?

Is this whole stuff I do there any good or performant at all? I mean maybe there is a better way to get the .html code between two tags from a Webpage and display it via WebView.

Kind regards Markus

© Stack Overflow or respective owner

Related posts about android

Related posts about resources