What we use to do in this case is -
- Download all Configuration while loading Splash Screen of app first time.
- And than can save all these in
SQLiteDB
or inSharedPreferences
. - After that, for each time app your runs, you must check for internet connectivity,
IF is exists you SHOULD go for download configuration IF required for updates/modifications) OR you should fetch these from
SQLiteDB/SharedPreferences
. - Now, you can access
SQLiteDB/SharedPreferences
from all your activities to use data.
Hope it helps, and let me know if yours use case is different..