I have a list of strings, let's say:
l = [a, b, c, d, e, f];
with 6 elements. After working with first 3 elements, for example (a, b, c), I close down my app. I again open my app and want to start my work from 4th element i.e. 'd'. How do I achieve this in Android? At present whenever I close my app, the list gets reset to first element. Again, in my case, the list is really long and when it is used by different users, I don't know a priori at what element a random user will close the app.
I want a method which can keep track of the last element being accessed before the app is closed, so that I can restart from that location (+1) element.