Hello Kostya,

numRows is the value returned  by my database call.  It is what I used
to set the arraybound on the array adapter. It is also 6 as verified
by the debugger.
Like I said, it appears that the api is buggy and does not provide the
ability to set listview items to be of different colors, since there
is no way to manipulate them with the provided api.

2012/1/5 Kostya Vasilyev <[email protected]>:
> Back to the original code snippet:
>
> The list view's item count is returned by "theList.getCount" and stored in a
> variable called "count".
>
> The loop goes from 0 to "numRows".
>
> That's an entirely different variable.
>
> Perhaps it's also set to theList.getCount() earlier, but that's not in the
> posted snippet.
>
> There is also a typecast in that snippet, which can quite easily go wrong
> and throw an exception, and which would be a bug in that snippet - calling
> the wrong method assuming it does something else.
>
> -- Kostya
>
> 5 января 2012 г. 23:32 пользователь Kristopher Micinski
> <[email protected]> написал:
>
>> 2012/1/5 John Davis <[email protected]>:
>> > The only exception which i can find is
>> > javalang.unsupportedOperationException.
>> > as I was saying the api has a bug. The docs say you can get the data,
>> > when you try to so you get an exception. Either the docs are incorrect
>> > or its a bug.
>> >
>>
>> Yeah, it's a bug you caused.
>>
>> This is crazy: this method is used by thousands of developers in
>> thousands of apps out on the market today: to suggest that it is an
>> API bug with no data to back it (you don't have it, since your code
>> reveals what you are doing wrong) is just embarrassing.  It accuses of
>> the framework writers for being incorrect, when in reality it's your
>> code.
>>
>> Kris
>>
>> --
>> 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 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



-- 
John F. Davis

独树一帜

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