Guest User

Untitled

a guest
Jan 23rd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. return false;
  2.  
  3.  
  4.  
  5. }
  6.  
  7. mWebView.stopLoading();
  8. mWebView.goBack();
  9. final AlertDialog alertDialog = new AlertDialog.Builder(Textures.this).create();
  10. alertDialog.setTitle("Navegador");
  11. alertDialog.setMessage("Deseja abrir o navegador?");
  12. alertDialog.setButton(DialogInterface.BUTTON_POSITIVE, "Sim", new DialogInterface.OnClickListener() {
  13. public void onClick(DialogInterface dialog, int which) {
  14. Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
  15. startActivity(intent);
  16.  
  17. }
  18.  
  19. });
  20. alertDialog.setButton(DialogInterface.BUTTON_NEGATIVE, "Não", new DialogInterface.OnClickListener() {
  21. public void onClick(DialogInterface dialog, int which) {
  22. alertDialog.dismiss();
  23. }
  24. });
  25.  
  26.  
  27. alertDialog.show();
  28.  
  29.  
  30.  
  31.  
  32. return false;
  33. }
Add Comment
Please, Sign In to add comment