From 1141d137a62f01a61ed9d7ce9e3ecff094c36b8c Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 11 Sep 2018 01:20:27 +0200 Subject: [PATCH] update readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6b34d7c..32a449e 100755 --- a/README.md +++ b/README.md @@ -10,14 +10,14 @@ If you want to create an app that displays the contents of a remote website 1. uncomment lines **30** and **31** in `MainActivity.java` and replace `http://example.com` with your remote source - ``` + ```java mWebView.loadUrl("http://example.com"); mWebView.setWebViewClient(new MyWebViewClient()); ``` 2. open the `MyWebViewClient.java` file and replace `example.com` on line **12** with your custom hostname - ``` + ```java if (Uri.parse(url).getHost().endsWith("example.com")) { ``` @@ -27,7 +27,7 @@ If you want to create a local HTML5 android app 1. uncomment line **34** in `MainActivity.java` - ``` + ```java mWebView.loadUrl("file:///android_asset/index.html"); ```