Yes Justin,
I understand and agree with you 100% - we can't get code of all
situations that we face, nor I ever look out for it. I just explore and try
to figure it out myself. When after spending hrs and am badly stuck up,
then only I ask in any forum, else I work out thru exploring.
But yes, what you got from docs and suggested me, I really didn't find
out. I really had missed out something, don't know how.
On Thursday, 6 September 2012 19:29:08 UTC+5:30, MagouyaWare 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]
> <javascript:>>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