I have a ListView where each item is made of multiple TextViews and Bitmaps. The list is quite large and it takes around 5-6 seconds to load when the app is launched. So, I'm trying to cache the ListView data into my SD card, so that the list is created only once and after that, the app would read the list from cache, instead of creating the list all over again (I'm using AsyncTask).
So, I tried caching ListView data as simple Serializable object, using FileOutPutStream and ObjectOutputStream. This works fine for simple lists, but in my case, I'm unable to read data from cache. The stack trace says the object couldn't be read as it is not Serializable. How can I store such complex ListView data? I have tried this so far.