I have an alert dialog like this :

********************************************
new AlertDialog.Builder(mContext)
.setTitle("Testing")
.setMessage("Buy this thing?")
.setPositiveButton(R.string.yes, yesListener)
.setNegativeButton(R.string.no, noListener)
.show();
********************************************

If we pressed the positive button, the program will run the
yesListener and run the noListener if we pressed the negative button.

What i want is, if the program met certain condition, the alert dialog
will show, and program automatically pressed the positive / negative
button.

I don't want to access the method directly, because i want the dialog
to be shown first... (it's done as if human pressed the button).

Is it possible?

Thanks,
sasuke
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to