0
私のwebViewに問題がありますか? 私はなどのネイティブのWhatsAppを開くには、ユーザーがウェブサイト上のリンクをタップを選択したメッセンジャー、このソリューションを使用してい:私は、たとえば、「電報」をタップし、電報アプリが上にインストールされていない場合、WebViewが致命的になる:jni_android.cc(233)]エラー
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
Log.d(LOG_TAG, "shouldOverrideUrlLoading: " + url);
if (url.contains("tel:")) {
startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse(url)));
return true;
} else if (url.startsWith("whatsapp:")
|| url.startsWith("viber:")
|| url.startsWith("telegram:")) {
try {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(url));
startActivity(intent);
} catch (android.content.ActivityNotFoundException e) {
Log.e(LOG_TAG, "Error with " + url + ": " + e.toString());
Toast.makeText(getApplicationContext(), getString(R.string.app_not_install), Toast.LENGTH_SHORT).show();
} catch (Exception q){
q.printStackTrace();
}
return true;
}
if (Uri.parse(url).getHost().equals(URL)) {
// This is my web site, so do not override; let my WebView load the page
return super.shouldOverrideUrlLoading(view, url);
}
return super.shouldOverrideUrlLoading(view, url);
}
が、私のデバイス、次のエラーを取得します。
A/chromium: [FATAL:jni_android.cc(233)] Check failed: false. Please include Java exception stack in crash report
W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
W/google-breakpad: Chrome build fingerprint:
W/google-breakpad: 1.0
W/google-breakpad: 1
W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 15585 (moilov.filipapp)
私はそれを修正することができますか?