I'm using a TreeMap because it's the most efficient data structure for storing the information I need. I have to be able to persist the TreeMap for future use, so is there a way for me to store it in a SharedPreferences
object, maybe serialize it before doing so?
I'm aware of this method here, but using ObjectSerializer
from the Apache Pig project makes Eclipse crash. When I run the app, the status bar at the bottom never goes past the message "Launching [app name] 100%", until it throws the following error message:
Unable to execute dex: Java heap space
Unhandled event loop execution
Is there anything I can do to store the TreeMap inside the shared prefs?