From e608ea0bbad26b1aa59f201e48714ddf375c7d58 Mon Sep 17 00:00:00 2001 From: Aronne Brivio Date: Tue, 10 Jan 2017 16:05:15 +0100 Subject: [PATCH] Custom User Agent --- app/src/main/java/it/langolonerd/app/MainActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/it/langolonerd/app/MainActivity.java b/app/src/main/java/it/langolonerd/app/MainActivity.java index 364a68f..1720430 100644 --- a/app/src/main/java/it/langolonerd/app/MainActivity.java +++ b/app/src/main/java/it/langolonerd/app/MainActivity.java @@ -53,6 +53,7 @@ public void onCreate(Bundle savedInstanceState) { // set webview params webView = (WebView) findViewById(R.id.webView1); webView.getSettings().setJavaScriptEnabled(true); + webView.getSettings().setUserAgentString("WEBAPP"); webView.setHorizontalScrollBarEnabled(false); webView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY);