0
I created an application using the WebView
in Android Studio.
On my website where the WebView
opens has email links that when clicking should open the default email application of the mobile. Only this does not happen and gives an error message:
Web page not available mailto:email address net::ERR_UNKNOWN_URL_SCHEME.
Source code of WebView
:
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class MainActivity extends AppCompatActivity
{
private WebView miWebview;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
miWebview = findViewById(R.id.wv_main);
miWebview.getSettings().setJavaScriptEnabled(true);
miWebview.setWebViewClient(new WebViewClient());
miWebview.loadUrl("http://cariocaempregos.com.br");
}
}