title: WebView not Working Properly
body: <p>I made a url to open through webview and everything worked fine for me except some buttons of the webpage it doesn't respond anything </p>
  
  <pre><code>public class browse extends AppCompatActivity {
  
  WebView appwebview;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_browse);
  
      String profileID= getIntent().getStringExtra("inputtext");
      Toast.makeText(getApplicationContext(),profileID,Toast.LENGTH_SHORT).show();
  
      appwebview=(WebView) findViewById(R.id.webview);
      WebSettings webSettings= appwebview.getSettings();
      webSettings.getJavaScriptEnabled();
      appwebview.loadUrl("https://statsroyale.com/profile/"+profileID);
      appwebview.setWebViewClient(new WebViewClient());
  }
  
  @Override
  public void onBackPressed() {
      if(appwebview.canGoBack())
          appwebview.goBack();
      else
      super.onBackPressed();
   }
  }
  </code></pre>
  
  <p>the intent passes text of textfield from MainActivity and depending on that text i used to show profile.</p>