public List < Integer > getSelectedIndicies ( ) { List < Integer > selection = new LinkedList < Integer > ( ) ; for ( int i = 0 ; i < mItems . length ; ++ i ) { if ( mSelection [ i ] ) { selection . add ( i ) ; } } return selection ; }
Returns a list of positions one for each selected item .