Save ArrayAdpater<File> when rotating?


Last Updated:

  1. jfbaro

    jfbaro Well-Known Member This Topic's Starter

    Joined:
    Jan 7, 2010
    Messages:
    62
    Likes Received:
    0
    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
     

    Advertisement

Share This Page

Loading...