Okay I moved it and less errors are present now. However, ArrayList is
underlined. Am I supposed to declare that as a variable?

On Mon, Aug 9, 2010 at 9:33 PM, Frank Weiss <[email protected]> wrote:

> Thanks for getting down to the brass tacks.
>
> First, that field (aka member) declaration and initialization should
> go inside the class declaration, not before it.
>
> Next is Java Generics, a powerful Java language feature that takes
> some time getting used to. Here's the official story:
> http://www.oracle.com/technetwork/articles/javase/generics-136597.html.
>
> I can summarize how it's applied to HelloItemizedOverlay. The
> <OverlayItem> notation tells the compiler that you want this list to
> only contain instances of OverlayItem (or its subclasses). This helps
> to avoid programming errors, because now your code can only add that
> type of object and the rest of the Android map API is gauranteed that
> the list will only have objects of that type (or subtype). Also note
> I'm using the terms type and class interchangably for this discussion.
>
> After the Activity lifecycle, I think the use of Java Generics is the
> most difficult concept for Android newbies, so don't feel bad. But do
> study these two concepts thoroughly to make your Android development
> life easier.
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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