1
当我接受警报时,我的第一个屏幕上有警报消息,我必须显示下一个屏幕并将某些值传递给该屏幕以显示值。我对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提前
发布一些代码,然后我们可以帮助你 – RoflcoptrException 2010-06-04 12:46:55