Shared Preferences and AsyncTask for DB

Implement Shared preferences and time check from last update