开发者

How do I add List of items that is stored in my Java file into My List Activity?

开发者 https://www.devze.com 2023-02-23 14:43 出处:网络
Can anybody please help me in adding List of items that is stored in my Java file into My List Activity. I fetch the list items from remote database through my JDBC connection (java.sql). Then I try t

Can anybody please help me in adding List of items that is stored in my Java file into My List Activity. I fetch the list items from remote database through my JDBC connection (java.sql). Then I try to store it in different variables in a java file. Finally I want to fetch these items and display it in my list. How do I do it? Also I would like the list items to be dynamic as in futur开发者_JS百科e new items might be added.

My List item will be an array List.

Thanks & Regards, Sneha


For the listView part you will need to write an adapter that fetches the data from your java file and bind it to each row in the listView. Read this tutorial for custom list views.

  • Salil
0

精彩评论

暂无评论...
验证码 换一张
取 消