Are you sure we're talking about Android here? What's wrong with Vector? 
ArrayList is good for most occasions but Vector has its merits...  you got 
it wrong regarding the SimpleAdapter anyhow (they use any implementation of 
List, which Vector is.. they dont need ArrayList... the description saying 
it needs an ArrayList is a mistake).
 
Vector isn't really dead...It can make things simple if you want to deal 
with concurrency easily. 
Stack is also a subclass of it, so those should count as well :)
 
Also, how is Hashtable obsolete for android development? you got any better 
alternative for its purposes?  I think you're thinking of the C# classes 
which are rather obsolete replaced by Dictionary and List... but unless 
he's a Mono developer, he's using Java :)
 

On Wednesday, May 15, 2013 1:21:59 AM UTC+3, Lew wrote:

> bob wrote:
>
>> It sounds like he may want to call *Collections.sort()* on the backing 
>> collection.  Probably a *Vector*.
>>
>>>
>>>
> Why do you say "probably" a 'Vector'? The standard Android classes that 
> use a collection include 
> http://developer.android.com/reference/android/widget/SimpleAdapter.html
> that uses 'ArrayList', not 'Vector'. I was not able in a brief search to 
> find anything in the Android docs 
> that would lead a person to use 'Vector'.
>
> It is striking to me how much pernicious life the 'Vector' class has even 
> fifteen years after it was declared obsolete.
>
> Ditto 'Hashtable' but somewhat less so.
>
> -- 
> Lew
>  
>

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to