最佳答案
I am actually new to programming in Java but I have been following several solutions to my problem here but didn't find one that suits my case and I can't seem to get the code down correctly.
I would like to have a WebView
that opens an online page (for example Google) when the phone is online and open a local HTML page when the phone is offline.
At the same time though I want the phone to overwrite the local page when it is online so that the offline local page is always updated to the last time the phone was connected to the internet.
Any ideas on how this could be done? Some simple pointing to the right direction could help.
Thanks a lot.