I want to show Whatsapp is not installed when users click on "Share On Whatsapp" button. i got policy violation from adMob, if users have installed Whatsapp all works fine but if users don't have Whatsapp then App crashes on Share click, this is my code:
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (url != null && url.startsWith("whatsapp://")) {
view.getContext().startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
return true;
}
Thanks