I am implementing a contacts app, I made a RecyclerView and am showing all the contacts that I fetched from the API. Now, when I select an item, its id (as JSON object) should be added to a JOSN Array and if I unselect the item then that JSON Object should be removed from the Array. I am able to add the id to the Array but when I select multiple items then I am not able to append the next object to the JSON Array. Similarly, when I unselect an item then that object should be removed from the Array.
Here is my Adapter Calss:
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop