Hi,
In my midlet there is a huge EXCLUSIVE list (over 100 items). These items *usualy* are accessed sequentialy. Kind of like chapters in a book.
When the user selects an item, and exists the midlet, I store the selected item index in a RecordStore.
When the user runs the midlet again I read in the selected item index from the RecordStore, and issue a setSelectedIndex() method to the list, to set up things as the user had left them before.
Since the list items are *usualy* accessed sequantialy, I would like the list's cursor to start from the item I just selected. So that the user can easaly select the item after it without scroling all the way down from the head of the list.
The list object remembers the cursor last position when the midlet is running, but when the user exists the midlet, and then run it again the cursor is positioned at the head of the list.
One work around is for me to reorder the list so that the head of the list is always the last item selected by the user. But I would rather use a more direct solution.
So any ideas on how I can manualy set the postion of a list cursor?
Thanks in advance...

Reply With Quote




