> > The reason I said the docs give you everything you need is because once > you add the parameter to your static method the code inside your dialog > should be virtually identical to that in the docs. >
EDIT: I meant to say "*the code inside your METHOD should be virtually identical to that in the docs"* Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Sep 6, 2012 at 7:56 AM, Justin Anderson <[email protected]>wrote: > I couldn't find any example from docs as per my needs and that you and >> Trek are reffering to. >> > > If you were looking for an example of how to create an dialog with a > static function then yes you are right... However, if you go through your > career as a developer expecting to find code examples for everything you > are trying to do exactly how you are doing it then you are going to have a > very hard time. > > The docs talk about how to set a click listener on a dialog. There are > (potentially) an infinite number of ways to create an alert dialog... > including a static method like you have done (though I personally would not > do it that way). You are not going to have examples for everything. You > need to apply critical thinking to the information from the docs to apply > it to your situation. > > That is what I did when I looked at the docs, looked at what you were > doing, and suggested adding a click listener as a parameter to your > method. The reason I said the docs give you everything you need is because > once you add the parameter to your static method the code inside your > dialog should be virtually identical to that in the docs. > > > Thanks, > Justin Anderson > MagouyaWare Developer > http://sites.google.com/site/magouyaware > > > On Sat, Sep 1, 2012 at 2:07 AM, tvdalia <[email protected]> wrote: > >> I couldn't find any example from docs as per my needs and that you and >> Trek are reffering to. > > > -- 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

