title: Blank page shown using webview
body: <p>Good day!
  I have tried using webview for my app but it seems the result was blank. Sorry but this is my first try to use android studio.</p>
  <p>Here's an example of my MainActivity.java code:</p>
  <pre><code>  public class MainActivity extends AppCompatActivity {
      private WebView web;
      String webUrl = &quot;https://scchemp.rf.gd/&quot;;
  
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          web = (WebView) findViewById(R.id.myweb);
          web.loadUrl(webUrl);
  
          WebSettings mywebsettings = web.getSettings();
          mywebsettings.setJavaScriptEnabled(true);
  
          web.setWebViewClient(new WebViewClient());
  
          //improve webview performance
          web.getSettings().setAllowFileAccess(true);
          web.getSettings().setRenderPriority(WebSettings.RenderPriority.HIGH);
          web.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
          web.getSettings().setAppCacheEnabled(true);
          web.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);
          mywebsettings.setDomStorageEnabled(true);
          mywebsettings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NARROW_COLUMNS);
          mywebsettings.setUseWideViewPort(true);
          mywebsettings.setSavePassword(true);
          mywebsettings.setSaveFormData(true);
          mywebsettings.setJavaScriptEnabled(true);
  
      }
  
      @Override
      public void onBackPressed() {
          if(web.canGoBack()){
              web.goBack();
          }
          else
          {
              super.onBackPressed();
          }
      }
  
  
  }
  </code></pre>
  <p>For Manifest. I added android.permission.INTERNET and andriod.permission.ACCESS_NETWORK_STATE for permission</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      package=&quot;com.andriodscch.scchemisapp&quot;&gt;
  
      &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot;/&gt;
      &lt;uses-permission android:name=&quot;andriod.permission.ACCESS_NETWORK_STATE&quot; /&gt;
  
  
      &lt;application
          android:allowBackup=&quot;true&quot;
          android:icon=&quot;@mipmap/ic_launcher&quot;
          android:label=&quot;@string/app_name&quot;
          android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
          android:supportsRtl=&quot;true&quot;
          android:usesCleartextTraffic=&quot;true&quot;
          android:theme=&quot;@style/Theme.SCCHEMISAPP&quot;&gt;
          &lt;activity
              android:name=&quot;.MainActivity&quot;
              android:exported=&quot;true&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
  
                  &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/zM91m.png" rel="nofollow noreferrer">Result Image Click Here</a></p>
  <p>also the this is the activity_main.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
     xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
     xmlns:tools=&quot;http://schemas.android.com/tools&quot;
     android:layout_width=&quot;match_parent&quot;
     android:layout_height=&quot;match_parent&quot;
     android:orientation=&quot;vertical&quot;
     tools:context=&quot;.MainActivity&quot;&gt;
  
     &lt;WebView
         android:layout_width=&quot;match_parent&quot;
         android:layout_height=&quot;match_parent&quot;
         android:id=&quot;@+id/myweb&quot;/&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>