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. opengl es texture created from bitmap is all white?

Why are you using the ARGB_4444 mode?






-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~

2. PackageManager( 458): Package com.google.android.browser has mismatched uid: 1000 on disk, 10003 in setting

D/        (  458): zip_openZipFile(/system/app/MasfProxyService.apk)
D/        (  458): zip_openZipFile(/system/app/SettingsProvider.apk)
E/PackageManager(  458): Package com.google.android.browser has
mismatched uid: 1000 on disk, 10003 in settings
D/        (  458): zip_openZipFile(/system/app/Browser.apk)
E/PackageManager(  458): Package
com.google.android.providers.telephony has mismatched uid: 1000 on
disk, 1001 in settings
D/        (  458): zip_openZipFile(/system/app/TelephonyProvider.apk)
E/PackageManager(  458): Package
com.google.android.providers.contacts
has mismatched uid: 1000 on disk, 10000 in settings
D/        (  458): zip_openZipFile(/system/app/ContactsProvider.apk)
E/PackageManager(  458): Package com.google.android.development has
mismatched uid: 1000 on disk, 10004 in settings
D/        (  458): zip_openZipFile(/system/app/Development.apk)
E/PackageManager(  458): Package com.google.android.phone has
mismatched uid: 1000 on disk, 1001 in settings
D/        (  458): zip_openZipFile(/system/app/Phone.apk)
E/PackageManager(  458): Package com.google.android.home has
mismatched uid: 1000 on disk, 10005 in settings
D/        (  458): zip_openZipFile(/system/app/Home.apk)
E/PackageManager(  458): Package com.google.android.maps has
mismatched uid: 1000 on disk, 10000 in settings
D/        (  458): zip_openZipFile(/system/app/Maps.apk)
E/PackageManager(  458): Package com.google.android.providers.im has
mismatched uid: 1000 on disk, 10000 in settings
D/        (  458): zip_openZipFile(/system/app/ImProvider.apk)
E/PackageManager(  458): Package
com.google.android.providers.googleapps has mismatched uid: 1000 on
disk, 10000 in settings
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. setting a listview height when items are below it

4. Broken search on developer.android.com

5. G1 UAProf?

6. setting a listview height when items are below it

7. Will [all] attachments be included with email