Possible duplicate of :
I know, but the reason I still ask this question is I DID NOT UNDERSTAND THOSE ANSWERS. And I also know, that it's my problem and those contributors did well. Not blaming anyone.
I'm a beginner at Android Studio and those answers were definitely not rookie friendly. cause I've been starring at them for like 20 hours till now.
Any way, here's the code I have :
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class MainActivity extends AppCompatActivity {
private WebView webView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
webView = findViewById(R.id.webviewid);
webView.setWebViewClient(new WebViewClient());
webView.loadUrl("https://www.google.com/");
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
webView.getSettings().setDomStorageEnabled(true);
}
}
Any help is greatly appreciated.