I created a custom listview with baseadapter.The list items contains a checkbox for the purpouse of multichoice.I added a function in the baseadapter that returned the positions of the selected items.
To catogarize the listitems i tried to put the listview in Fragments with a Viewpager with FragmentPagerAdapter.Now each Fragment has its own multichoice listview.The user needs to be able to swipe between pages and select items then finally before moving to the next Activity i have to collect all the selected item positions into a two dimensional List or Array.
MyProblem: It seems the Viewpager maintains only 2 additional pages in memory one on either side of the current page.If my viewpager is at a corner or has more than 3 pages iam unable to collect the list of selected items in some of the fragments.
I would appreciate any help on this.