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

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

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


Sponsored Links

Other Threads

1. the log problem in test_pvauthorengine


    Because I have to do some work on pvauthor,  I want to get the log
message during running the test_pvauthorengine.

   So I write the pvaelogger.txt as following :


   I copy the test_input and pvaelogger.txt to the sdcard.

   the command line is :

   test_pvauthorengine -test 204 204

   It produce the pvauthorlog.txt, but it is empty.

   And the message from the command line is
   ash-3.2# test_pvauthorengine -test 204 204
SDK Labeled: PVDEV_CORE_RELEASE_6.506.4.1 built on 20090312

PVAuthorEngine Unit Test

[test range from: 204 to: 204]

No output file specified
, Using default MP4 Composer
Begin test with the following parameters:
Input File Name :
Output File Name: ,
Video Encoder: /x-pvmf/video/encode/mp4,
Audio Encoder: /x-pvmf/audio/encode/amr-nb,
Composer: /x-pvmf/ff-mux/3gp

Starting Test 204:
Enter the function static bool PVAELogger::ParseConfigFile(const
line 131 :LOGTOFILE
line 153 :LOGTOFILE
line : 341 set the appender to file
line 155
line 173
line 178 :LOGTOFILE
line 173
line 203
line 210 node ALLNODES
line : 234 ALLNODES

Test:204: PCM16 to A-Only .3gp Test

Creating Author Engine
Creating Author Engine_2
Opening Author Engine
Add Data Source
Select Composer
Query Interface
Add Media Track
Query Interface2
Initializing  Author Engine
Starting Author Engine
Recording Please Wait*******
Recording finished, Closing file please wait *******
  Successes 1, Failures 0
  Time taken by the test:  1350

Test output begins
Number of tests: 1
Successes: 1
Failures: 0

Errors: 0

Test output ends

do you have some suggestion


2. How to get the root view of current Activity?


Romain Guy
Android framework engineer

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


3. Miami Area Users Group

4. How to get the root view of current Activity?

5. setContentURI VideoView

6. Can you make SlidingDrawer slide from top of screen without custom code?

7. J2ME or ANDROID eclipse usage