I created an application using WebView
in Android Studio.
On my website where WebView
opens has email links that when clicked should open the default email application on your phone. But this does not happen and gives an error message:
No webpage available mailto: net email address :: 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");
}
}