Logcat控制台错误信息
04-06 23:55:32.038 17166-17166/com.tdpress.mashu E/chromium: [ERROR:xwalk_autofill_client.cc(121)] Not implemented reached in virtual void xwalk::XWalkAutofillClient::OnFirstUserGestureObserved()
Activity中添加:参考官方文档
@Override protected void onPause() { super.onPause(); if (common_webview != null) { common_webview.pauseTimers(); common_webview.onHide(); } } @Override protected void onResume() { super.onResume(); if (common_webview != null) { common_webview.resumeTimers(); common_webview.onShow(); } } @Override protected void onDestroy() { super.onDestroy(); if (common_webview != null) { common_webview.onDestroy(); } } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (common_webview != null) { common_webview.onActivityResult(requestCode, resultCode, data); } } @Override protected void onNewIntent(Intent intent) { if (common_webview != null) { common_webview.onNewIntent(intent); } }
Manifests中添加:
<application android:name=".MyApplication" android:hardwareAccelerated="true"