Use SharedPreferences as a cache and make sure the application works offline