I find it hard to believe that without making a custom alertbox that
this can't be done.
Every thing I found is from 09,early 2010 so is this fixed?
My goal is to recall the dialog or just not close it when nothing is
entered.
So what needs to go into the "else" section?
carrier.setPositiveButton("Ok", new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int whichButton) {
String value2 = input2.getText().toString();
// Do something with value!
if(! (value2.equals("")))
{
phNo.show();
Toast.makeText(myMenu.this, value2, Toast.LENGTH_LONG).show();
}
else
{
// RIGHT HERE! WHAT GOES HERE !
}
}
});
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en