I need to load and retrieve a HTML webpage in internal or external memory of android device. What i need is to download and retrieve a webpage in android using web-view.
There is lot of repeated questions similar to downloading or saving the webpage. But none of the answers helped me. Guide me!
Thanks in advance.
An app is not helping them in case of a weak network zone, connectivity issue, the immense loading time will let the users switch to another app. The main solutions available to make the app work offline are: Local storage/ database. Data synchronization.
String url = "http://www.example.com"; Intent i = new Intent(Intent. ACTION_VIEW); i. setData(Uri. parse(url)); startActivity(i);
I don't know is this solution suitable for your.if you want to view a website in offline mod and online mod you can use a web crawler to fetch all data from website.Here is an example project for android web crawler.after that you can load a website from url or local memory based on your internet Availability.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With