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. Neubie Droid user from Surabaya

Salam kenal. Baru menggunakan N1 selama 4 hari.  Ada RR di surabaya?  Banyak
banget yg hrs dipelajari nih.  Mohon pencerahan. TQ

"Indonesian Android Community [id-android]" 

2. Problem with detecting device after connecting G1

Once I connected my T-Mobile G1 HTC using USB (with Windows USB
driver), I don't see the device listed either through 'adb devices'
command or by Eclipse DDMS perspective.

Can someone please suggest if I am missing any thing?


3. Mod: Retakan harap di Japri

4. application to run first time device is turned on

5. Ada yang bisa bantu Upgrade Radio dan Upgrade ROM di BANDUNG....Mau dong...

6. I want to find source file which controls wifi signal icon on status bar.

7. Ups B M G ;Ask sw NMG