1
0
Fork 0

Make webview debuggable with chrome://inspect

This commit is contained in:
Vendicated 2022-12-20 22:39:47 +01:00
parent a7d40130a2
commit a31d92f795
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

@ -25,6 +25,9 @@ public class MainActivity extends Activity {
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
// https://developer.chrome.com/docs/devtools/remote-debugging/webviews/
WebView.setWebContentsDebuggingEnabled(BuildConfig.DEBUG);
setContentView(R.layout.activity_main); setContentView(R.layout.activity_main);
wv = findViewById(R.id.webview); wv = findViewById(R.id.webview);