How to add Data dynamically in ListView in Android
I have ListView which as one Text开发者_开发问答View in each Row. and im discovering some upnp devices in the network, once discovered i have to add the name of the discovered device into the List. My question is how to update the List Dynamically.so anyone Please help me.
thank u.
Just update the List/ArrayList you're using as your list adapter's data source, and call notifyDataSetChanged()
on your ListView.
精彩评论