I need a way to store a json-string as for as long as the application is alive.
So to put this into other words :) If the application changes orientation or gets paused or stopped i need to store my value/string.. But if the application gets forced killed for some reason I want the value to be removed/droped
Im trying to create a custom history-handler.. and this history handler is suppoed to keep history of actions with in my application for as long as the application process is actually running, but as soon as the process gets killed I need the history to get erased as well.
I have tried to store the value/string as a SharedPrefernce, and to simply remove it once isFinishing()== true I have also tried using the onDestroy as well.. but there seems to be no "beforeProcessKilled"-event to listen for.. so maybe there is another option than using the SharedPreferences?
Thanks in advance!