suudupa / Pandemic-Tracker

Android Application for Tracking COVID-19 Worldwide
2 stars 0 forks source link

Implement save instance state/offline caching for JSON data #11

Closed suudupa closed 4 years ago

suudupa commented 4 years ago

If the user doesn't have internet/loses his connection or simply can't load the stats, either: -load the last saved instance of the activity (using a hashmap to store stats from every region?); -display an error-layout ("error loading") with a "retry" button to attempt to re-fetch the data. Touches #9.

suudupa commented 4 years ago

covid19data.json file is now cached and used when user is offline. If there is no stored data, error layout is shown.