My first screen has the alert message when I accept the alert I have to show the next screen and pass some values to that screen to show that values.I am very new to android.
new AlertDialog.Builder(this)
.setTitle("File accept!")
.setMessage("Do you Want to open "+name+" file !!")
.setPositiveButton("Open", new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dlg,int acc)
{
//here i need to open a new screen
}
})
.setNegativeButton("Close", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dlg, int sumthin) {
// do nothing – it will close on its own
}
})
.show();
}
--Thanks in advance