Kumar Bibek wrote:
> What are you trying to do? Can you elaborate a little bit?

In my Activity, I have a ListView and MultiAutoCompleteTextView. Both
of these use the same onItemClick listener, so in my code, I do:

if (view instanceof TextView) { ....} else { .... }

(I've now changed it to else if (view instanceof ListView), but the
version I uploaded has that code)

In my listener, I grab the value the clicked view holds, make some
modifications to it and finally append it to the
MultiAutoCompleteTextView.

Occasionally, the value of the clicked view is null which causes a
null pointer exception (stack trace linked to in my first post) in my
code when I do a findViewById call on it. As I understand, the view
that was clicked should never be null and the comment in the
AutoCompleteTextView source indicates they 'hope no existing apps
crash".


> I guess you want an Autocomplete textview that is capable of having
> multiple values, something like an email to field. If this is the
> case, you have a simpler solution. Just change the way,
> AutoCompleteTextView behaves.

I am using the MultiAutoCompleteTextView widget to hold multiple
values.

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to