Hi,
In my activity, I have code which create dialog like this with +ve and
-ve button each has its own click action:
protected Dialog onCreateDialog(int id) {
switch (id) {
case CONFIRM_DIALOG:
// create my own dialog with positive and negative button...
}
}
My question is how can I create instrumentation to emulate the click
on that button? That onClick() implementation calls a private method
of my activity.
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int
whichButton) {
aPrivateMethodOfMyActivity();
}
Thank you.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---