Make webview debuggable with chrome://inspect
This commit is contained in:
parent
a7d40130a2
commit
a31d92f795
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue