Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1.        
  2.         // Listener
  3.         TextView comptext = (TextView) findViewById(R.id.comptext);
  4.         comptext.setOnClickListener(new View.OnClickListener() {
  5.         public void onClick(View v){
  6.             AlertDialog.Builder alertbox = new AlertDialog.Builder(getBaseContext());
  7.             alertbox.setTitle("Compcache");
  8.             alertbox.setMessage("Description ....");
  9.             alertbox.setButton("OK", new DialogInterface.OnClickListener() {
  10.             public void onClick(DialogInterface dialog, int which) {
  11.                 return;
  12.             }});       
  13.             alertbox.show();
  14.             }
  15.         });    
  16.  
  17. // DEBUG: --> DialogInterface cannot be resolved to a type
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement