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

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,


Other Threads

1. Psx4Droid!

As subject, dah nongol di Market buat paid-apps.. *downloading NFS III - Hot

*PS: pssst, buat yg mo gr*tisan, you know where to find it.. :P*

"Indonesian Android Community [id-android]" 

2. Aktifin Flexi Unlimted di Samsung Momen

Sapa yang bisa bantuin ya :(
Ini kondisi moment sudah bisa buat telp dan sms kemudian baru saja
saya ganti username & password menggunakan QPST di bagian MIP dan PPP
hasilnya 1x tetap ga keluar hiks2 gimana solusinya ya

thx all

"Indonesian Android Community [id-android]" 

3. SDK addon for Sony Ericsson X10

4. New Developer Distribution Agreement

5. Changes required to handle dual orientations

6. Cannot open "/system/etc/wifi/wpa_supplicant.conf": No such file or directory

7. Drivers to Sony Ericsson phones (X10, X10 mini/pro, X8)