If i use another .setMessage() than second button just overwrite firstone and only second is visible..
Plz respond.
Using java Syntax Highlighting
- new AlertDialog.Builder(this).setTitle("Tax Liability")
- .setMessage("your Tax Liability is:" +"Rs."+ tax + " "+"If you want to save tax Click on the SAVE TAX or Cancel to go back.").setNeutralButton("SAVE TAX",
- new DialogInterface.OnClickListener() {
- @Override
- public void onClick(DialogInterface dialog,int which) {
- //agebox.requestFocus();
- Intent myintent=new Intent("android.intent.action.VIEW",
- Uri.parse("http://www.abc.com"));
- startActivity(myintent);
- }
- }).show();
Parsed in 0.014 seconds, using GeSHi 1.0.8.4