Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return false;
- }
- mWebView.stopLoading();
- mWebView.goBack();
- final AlertDialog alertDialog = new AlertDialog.Builder(Textures.this).create();
- alertDialog.setTitle("Navegador");
- alertDialog.setMessage("Deseja abrir o navegador?");
- alertDialog.setButton(DialogInterface.BUTTON_POSITIVE, "Sim", new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int which) {
- Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
- startActivity(intent);
- }
- });
- alertDialog.setButton(DialogInterface.BUTTON_NEGATIVE, "Não", new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int which) {
- alertDialog.dismiss();
- }
- });
- alertDialog.show();
- return false;
- }
Add Comment
Please, Sign In to add comment