content: package com.fadcam.ui;
  
  // WebViewA
  
  import android.os.Bundle;
  import android.webkit.WebView;
  import android.webkit.WebViewClient;
  
  import androidx.appcompat.app.AppCompatActivity;
  
  import com.fadcam.R;
  import com.google.android.material.appbar.MaterialToolbar;
  
  public class WebViewActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_webview);
  
          // Set up the back button
          findViewById(R.id.back_button).setOnClickListener(v -> finish());
  
          // Set up the WebView
          WebView webView = findViewById(R.id.webview);
          webView.setWebViewClient(new WebViewClient());
          webView.getSettings().setJavaScriptEnabled(true);
  
          // Load the URL
          String url = getIntent().getStringExtra("url");
          if (url != null) {
              webView.loadUrl(url);
          }
      }
  
      @Override
      public void onBackPressed() {
          WebView webView = findViewById(R.id.webview);
          if (webView.canGoBack()) {
              webView.goBack();
          } else {
              super.onBackPressed();
          }
      }
  }
  