It should *really* be:
ArrayList<yourItemClassNameHere> list = new
ArrayList<yourItemClassNameHere>();
This is type safe, as the array above knows that it keeps a list of
yourItemClassName - whereas "plain" ArrayList only knows that it keeps a
list of Object's.
The angle brackets above is a sign of a *generic* class, you should
learn more about them, and btw, your previous code with HashMaps also
used them.
Plenty of tutorials on this exist, this one seems pretty good:
http://en.wikipedia.org/wiki/Generics_in_Java
Oh, and as for the runtime error - start by checking the logcat.
-- Kostya
02.02.2011 8:48, Mystique пишет:
sorry shd be:
ArrayList qqq = new ArrayList();
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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