Database on csv

Since I do not know how big is your database first try with tinyDB. On screen initialize check if is firstrun, check if network is fast and call online data and save table to tinyDB. Next time app runs check network and if false use tinyDB as database

Else same procedure only instead of saving to tinyDB dowload to ASD and again if no network then read from csv. Useful extensions [DISCONTINUED] Extension to download file(s) to ASD (app-specific directory) without WRITE permission and MFile - a modified version of Sunny's `EFile` extension - Shared folders - storage permissions - Android 11+

1 Like