diff --git a/src/android/com/unprompted/tildefriends/MainActivity.java b/src/android/com/unprompted/tildefriends/MainActivity.java
index 8f6650bd5..628a6746d 100644
--- a/src/android/com/unprompted/tildefriends/MainActivity.java
+++ b/src/android/com/unprompted/tildefriends/MainActivity.java
@@ -10,12 +10,14 @@ import android.os.CountDownTimer;
import android.os.SystemClock;
import android.util.Log;
import android.view.KeyEvent;
+import android.view.View;
import android.view.Window;
import android.webkit.JsResult;
import android.webkit.WebChromeClient;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import android.webkit.WebViewClient;
+import android.widget.Button;
import java.lang.Process;
import java.lang.Thread;
@@ -128,6 +130,14 @@ public class MainActivity extends Activity {
});
web_view.loadUrl("http://127.0.0.1:12345/");
+
+
+ Button refresh = (Button)findViewById(R.id.refresh);
+ refresh.setOnClickListener(new View.OnClickListener() {
+ public void onClick(View view) {
+ web_view.reload();
+ }
+ });
}
@Override
diff --git a/src/android/res/layout/activity_main.xml b/src/android/res/layout/activity_main.xml
index 12d30a3f5..d4251cc9b 100644
--- a/src/android/res/layout/activity_main.xml
+++ b/src/android/res/layout/activity_main.xml
@@ -1,5 +1,5 @@
-
-
+ android:id="@+id/web">
+
+
+