use a file and store the last value used
when you start your app read this value