I realize this is a pretty noobish question, how would you go about saving and comparing time between using functions in your app? For instance, I dont want them to be able to post to facebook or submit feedback more than once every 24 hours. I'm assuming i'd save the previous time in sharedPref or something, then compare to the new time to see if 24 hours have passed? If so do the function, set new sharedPref variable for the time to current time etc.
Could someone please show me this? Struggling.