AlertDialog.Builder adb = new AlertDialog.Builder(context);
adb.setTitle("Fastrack Car Availability");
adb.setMessage("100 Cars Available Currently");
adb.setPositiveButton("Ok", new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int id)
{
// Action for 'Ok' Button
setContentView(R.layout.bookatrip1);
}
});
adb.setNegativeButton("Cancel", new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int id)
{
// Action for 'Cancel' Button
dialog.cancel();
}
});
adb.setIcon(R.drawable.bookatrip1);
adb.show();
adb.setTitle("Fastrack Car Availability");
adb.setMessage("100 Cars Available Currently");
adb.setPositiveButton("Ok", new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int id)
{
// Action for 'Ok' Button
setContentView(R.layout.bookatrip1);
}
});
adb.setNegativeButton("Cancel", new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int id)
{
// Action for 'Cancel' Button
dialog.cancel();
}
});
adb.setIcon(R.drawable.bookatrip1);
adb.show();
No comments:
Post a Comment