I am using dialog box. I want that if i click the button, the other activity gets called. But its giving the following error. //The constructor Intent(new DialogInterface.OnClickListener(){}, Class) is undefined
Here's the code
  builder1.setNegativeButton("secondact", new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int which) {
                    // TODO Auto-generated method stub
                    Intent i=new Intent(this, FbsampleActivity.class)
                }
            });
 
     
     
     
     
     
    