Hi,
I am working in a file browser app (for studying purposes) and I have a collection of data (ArrayAdapter) which can come from a LONG RUNNING search. If the user rotates the screen I don't want to have to start all the search again, as it would be a terrible user experience.
Files are serializable, so I could store the results into the savedInstanceState bundle (I limit the search result to up to 500 File objects). But is there any more elegant approach? A part from that ArrayAdapter I also have 2 other Strings which I am already saving into savedInstanceState.
Any help would be much appreciated.
Cheers
I am working in a file browser app (for studying purposes) and I have a collection of data (ArrayAdapter) which can come from a LONG RUNNING search. If the user rotates the screen I don't want to have to start all the search again, as it would be a terrible user experience.
Files are serializable, so I could store the results into the savedInstanceState bundle (I limit the search result to up to 500 File objects). But is there any more elegant approach? A part from that ArrayAdapter I also have 2 other Strings which I am already saving into savedInstanceState.
Any help would be much appreciated.
Cheers