Mariano Pelizzari Mariano Pelizzari - 2 months ago 28
Android Question

Start whatsapp from webview

I have an app that loads a newspaper site in a webview. In that site you can share a news in facebook, twitter and whatsapp. I have facebook's and twitter's links covered with

shouldOverrideUrlLoading()


I can't figer out how to launch the whatsapp app. It uses a custom URL scheme:

whatsapp://send?text=


I get: the webpage at whatsapp://send?text= could not be loaded because:

net::ERR_UNKNOWN_URL_SCHEME

Answer

I suggest using loop from this question: using Intent.ACTION would give You best results.