I have a number of arrays (PInfo) and I'm wondering how to add that array to a list view ? I have this moment, the list package () is a method that is receiving application names from the device. At this time I am trying to get information from the array one by one and I want to add it to this list view. Is it that how should I do this to add our array to see our list? And how do you do that? You can use Then you can use the I'm not sure that this is what you are asking. So please explain that if it is not what you are saying then Arreelist & lt; PInfo & gt; Info = appsGetter.listPackages (); Int number = 0; PInfo app inwards; While (number & lt; info.size ()) {appInArray = info.get (number); } ArrayAdapter and start it By way:
Arrayadapter & lt; PInfo & gt; Adapters = new array adapters (references, Android R.Lt.simple_l_link_item_multiplay_choice, info); ListView.setAdapter (adapter) .
Comments
Post a Comment