Skip to content Skip to sidebar Skip to footer

Remove Item From Listview Using Onactivityresult

Propose again my question. Sorry for the repetition. I have a ListView where there are all the applications installed on the device. At the click on the item, part of the uninstall

Solution 1:

The position in appInfoArrayList.remove(position); is uninitialized make sure that you assign value to it.

Solution 2:

You should redraw the list, call the adapter.notifyDataSetChanged() after renewing the adapter data source, this should solve the problem if you use the same ArrayList to store and to show the data

Solution 3:

You are using this on exception

appInfoArrayList.remove(position);
adapter.notifyDataSetChanged();  

This should get called correctly to reflect the changes , check the data

Post a Comment for "Remove Item From Listview Using Onactivityresult"