Here is what I’d like to do.
- Read an html document into code
- Use getElementById to get a certain portion of code by id, then save this string.
- Create a text document to save this string to
- Run the text document (going to be a html doc)
Is this possible?
You need some html parser like it is Jsoup. Its easy simple and effective library. Down there you can see one my random implementation, I did for answering another question similar to this one.
.getElementById(id);is the method you are looking for…Here you can get the Jsoup
http://jsoup.org/
For writing the file use
FileWriteror any other class that allows you to write to fileDo not forget to add permision for connecting to internet in your
Manifest