A simple Webview based browser with a whitelist of allowed URLs. It downloads content using the Phone's internal downloader.
- Move to base on Mozzila GeckoView, no Android System WebView
- Real UI (No HTML)
- Load url list&catgories list from server, for example with json.
Open app/src/main/java/com/webview/app/MainActivity.java
and replace https://ashivered.github.io/listofurls.html
on line 81 with the URL for your website
mWebView.loadUrl("https://ashivered.github.io/listofurls.html");
the default URL will be loaded when you open the app.
Open app/src/main/java/com/webview/app/MainActivity.java
and replace the URLs in line 85 with your URLs.
Reverse the condition (in lines 87-95):
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
String host = Uri.parse(url).getHost();
if (whiteHosts.contains(host)) {
return false;
} else {
blockString();
return true;
}
to
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
String host = Uri.parse(url).getHost();
if (whiteHosts.contains(host)) {
blockString();
return true;
} else {
return false;
}