Save ArrayAdpater<File> when rotating?

Discussion in 'Application Development' started by jfbaro, Apr 6, 2010.

  1. jfbaro

    jfbaro Well-Known Member
    15

    Jan 7, 2010
    62
    0
    15
    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...