Good afternoon I have the following doubt I use a shouldOverrideUrlLoading to detect when certain link is clicked inside my webview for firing in the android browser, is there any way that when opening this link in the browser a back button will be created that will return to the webview ? Because this link serves only to make a validation and soon afterwards the user should return to webview
[code] mWebView.setWebViewClient (new WebViewClient () { @Override public boolean shouldOverrideUrlLoading (WebView view, String url) { if (Uri.parse (url) .getHost (). equals ("www.sitemercado.com.br/valida")) { return true;
}
String valida = "https://www.sitemercado.com.br/valida";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(valida));
startActivity(i);
Toast.makeText(getApplicationContext(), "1Detectou", Toast.LENGTH_SHORT).show();
return false;
}
}); [/code]