2

i have several html pages at sqlite3 which are connect with specific id. how can i dynamically load html from sqlite at runtime ?enter image description here

3
  • what means of html in sqlite3?how can you save html page in sqlite3?are you talking abt url as string in sqlite3?pls elaborate Commented Jan 28, 2011 at 11:24
  • Hi chirag, please take to look at to my sqlite image, i just save html files under description field and have to generate those html files with specific idx. any ideas ? Commented Jan 28, 2011 at 11:36
  • @chirag shah: HTML is just plain text, so he can save it in a text field. However, if the HTML contains images, he has a problem. Commented Jan 28, 2011 at 11:59

2 Answers 2

1

You can do this by saving that html page tags all to one string, and then use method:

 txt.setText( Html.fromHtml(s));// where s is string which has your html page content
Sign up to request clarification or add additional context in comments.

Comments

1

You can use WebView's loadData or loadDataWithBaseURL methods to load the fetched text as HTML or you can save the fetched text as a HTML file then use loadURL method to load that file.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.