Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
slymax authored Sep 10, 2018
1 parent 290bcbb commit 1141d13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
```

Expand All @@ -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");
```

Expand Down

0 comments on commit 1141d13

Please sign in to comment.