Populating Listview....

by furby » Tue, 08 Sep 2009 09:45:25 GMT


Sponsored Links
 I am probably being stupid here because I am a beginner in Android
development... But could somebody explain the step by step process of
dynamically populating a listview? I have found a few pages that do it
by reams and reams of code, but that seems kind of silly to me - I
think I must be missing the use of that since I am just looking for a
method that essentially says "Append an element to the list"....

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



Populating Listview....

by Mark Murphy » Tue, 08 Sep 2009 10:03:29 GMT


 


If you are using an ArrayAdapter on an ArrayList, call add() on the
ArrayAdapter.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Development Wiki:  http://wiki.andmob.org 

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


Sponsored Links


Other Threads

1. Determining active application

Hi, is there a method for determining which application is currently
focused?  I have a service that constantly polls a web-service.  I
would like the service to display an icon in the statusbar if a new
msg is found, but ONLY if the corresponding application is not the
active app.

Thanks!
--~--~---------~--~----~------------~-------~--~----~

2. android.app.ServiceConnectionLeaked

Hi hackbod,

I am very confused about your comment.  In the APIDemo,
LocalServiceBinding.java calls bindService method but nowhere in the
entire demo source code base does it call unbindService method.

Please clarify. Thanks!







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

3. Animate Overlays on MapView

4. Changing default link color

5. Changing the 9 patch when selected?

6. Can I include external jars with my Android project?

7. Asynchronously loading proble