I have used Inner and anonymous classes quite a bit and they work as
well as they do for desktop applications.

I even leave them as Inner classes as opposed to static nested classes
since you often have to use instance data in making decisions.

Inder

On Sat, Jan 17, 2009 at 6:15 AM, Juan David Trujillo C.
<[email protected]> wrote:
>
> Hi guys!
>
> I have been reading some Java coding good practices and inner classes
> are an important subject.  I know for a fact Inner classes are
> originally used to handle UI events (button clicks, keyboard type,
> etc.).  I was wondering if variables to handle UI elements (EditText,
> Buttons, TextView, etc.) should be declared in the inner class or the
> outer class.  What is the best practice in terms of Java coding?
>
> Best regards,
>
> Juan
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to