How to use html webpages content in android Applications


gfg web

gfg app

Here are the two images from the geeksforgeeks website and geeksforgeeks application, notice that they both have the same content, Now question is that how they uses the webpages content in his application, Is they save there articles content in the database and then fetch for both website and android application ? or they are using something else.

thanks in Advanced…


They aren’t parsing html in textview or something, rather they have a server, and they make request, and they get response to the request (probably in form of JSON) and they have some fragment or activity with specific set of elements and they just parse JSON and extract content.

And again, there are MANY ways to do this, but am pretty sure they aren’t just parsing HTML to textview or something. You can search and implement popular architecture in your app.

Answered By – Sandip

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published