Is there a super simple List / ListAdapter example out there for android

Posted by slim on Stack Overflow See other posts from Stack Overflow or by slim
Published on 2010-04-22T04:10:09Z Indexed on 2010/04/22 4:13 UTC
Read the original article Hit count: 577

Filed under:
|
|
|

I have a web service that returns a super simple list of objects

MyObject[] data = webServiceCall();

MyObject has 1 field i want to display, "Name" (i.e. data[0].Name )

How can i turn this into an activity that lists just the name of these objects in a scrollable listActivity in android. I am getting really confused with Cursors and am not sure if I need Cursors and I"m not sure what kind of adapter to implement (baseAdapter, SimpleAdapter etc)

So i guess i'm looking for three things,

the activity , the adapter and the layout.xml

Just trying to figure this android stuff out, definately a noob here

© Stack Overflow or respective owner

Related posts about android

Related posts about listview