Dear friends,
not very relevant to this forum, but I thought to let you know something I've discovered. When we run an app immediately at android's startup (I use 2.3), and there is a check for file.exists in our activity_create, since android is still scanning its media library (I thought this had to do just with the media lib), file.exists returns a false, thus pushing my app to place a fresh copy of my db from dir.assets. I solve this by simply adding a small counter, and exiting the app when file.exists returns false, just to let android take its time and finish with scanning. Of course there can be other ways, I chose this just to discourage users from trying to run the app very very fast.
PS: we're talking about external dirs.
not very relevant to this forum, but I thought to let you know something I've discovered. When we run an app immediately at android's startup (I use 2.3), and there is a check for file.exists in our activity_create, since android is still scanning its media library (I thought this had to do just with the media lib), file.exists returns a false, thus pushing my app to place a fresh copy of my db from dir.assets. I solve this by simply adding a small counter, and exiting the app when file.exists returns false, just to let android take its time and finish with scanning. Of course there can be other ways, I chose this just to discourage users from trying to run the app very very fast.
PS: we're talking about external dirs.