How to save(download) HTML page with all images, css etc in Android?

Tags: android,html,css,save

Problem :

I am developing Android application which is used to open pages from wiki resource. I want to save that pages to watch them later. So, is there a possibility to do it using libraries - write my own html-parser is a bit complicated for me.

Solution :

You could use the DefaultHttpClient as the response will hold all the data.

Here's the basic syntax:

HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet('');

try {
    HttpResponse response = client.execute(request);
    // store the response afterwards
} catch ([…]) {

More information can be found here: Android Developers | DefaultHttpClient.

    CSS Howto..

    How to prevent inner text resizing in CSS Animation @keyframes?

    Beginner: How to get a fixed element to a left position (float left?) - JSFiddle included

    How to change margin according to other elements?

    How to tell what is the right css line to apply in nested classes

    How to create click-able CSS sprite with rather than Javascript?

    How to center a text line in a navigation bar?

    Using CSS, how do you anchor an element to a baseline and size it based on another “pinned” element?

    How change the radio button hover color

    How to disable and re-enable tabindex of hidden/visible elements?

    How to bring a specific overlayed image to the foreground

    How can one select a parent element several levels above the child element utilizing the 'hover' selector and ':has()'?

    How to execute select() method on polymer elements based on URL?

    How to override CSS style assigned to element

    How to get the css with in inline styles using jquery

    CKEditor 4: How to add CSS stylesheet from plugin?

    How do I make my picture slideshow stay behind my header

    How can one pass component property values to the css/less clientlibs for that component? AEM 6.2

    In LESS, how to rewrite this CSS composition style?

    how to apply two kind of css to one control, one for internet explorer, another for firefox and chrome

    How do I stop the FLOAT (without extra markup)?

    User agent, how to have diferent css files for diferent devices automaticly

    how to save style-css values for Later use then Reload those values back

    HTML code to show splitted data_frame in one html page using python

    I can't get all the div's to show up with the same #id

    How to add CSS to an if else statement in PHP

    How to call JavaScript on change of CSS

    How to achieve this simple 3 column css layout

    How can I include CSS in php?

    How to preserve sibling element position when one sibling is absolutely positioned?

    webpage works well on all browsers except Android Browser, which shows fonts with increased size