ListActivity does the ArrayAdapter<T> class have to be an Inner Class

by David Parry » Fri, 23 Apr 2010 08:03:42 GMT


Sponsored Links
 Question:

I have a Concrete class that implements ListActivity in this class I
have an InnerClass extends ArrayAdapter<T>. This came from an example
and works great i.e. displays my list of items on the screen.

The problem is that I tried pulling out the InnerClass and use it as a
standalone Concrete class. So now I pass in the array of Items i.e T[]
to the constructor but when I set the ListActivity classes
setListAdapter(my pulled out InnerClass); the screen comes up empty?

So is this by design that ArrayAdapter has to be an InnerClass in the
ListActivity class?

If no then how can i get the list to display and update.

Thank you,
David

--



Other Threads

1. problem in AutoCompleteTextView

Hi Friends....

I am working on AutoCompleteTextView.Its working fine and doen't give
any error.Now the problem I am facing is,suppose we have 3 words
starting from "A",when I start typing the letter "A",It shows all the
three words.If we have three words like "An","Am","Az",when I type "n"
after "A",two other words should be removed from the list.and it
should display only "An".But those two letters are not disappeared in
my AutoCompleteTextView.What should I do???

Any one have any idea????

Thanks in Advance
Nemat

-- 

2. Halo Salam Kenal Semua

Halo,

Salam kenal semuanya, saya baru join mailing list ini.

Agus.

-- 
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

3. Where are Android users in the USA?

4. Accessing character data (CDATA) of XML element

5. How to check available RAM storage inside an application?

6. Gathering id-android # 2

7. Special Thank's To Mr subanindiyo Ardi