On Fri, Nov 18, 2011 at 1:46 PM, Nathan <critter...@crittermap.com> wrote: > Fellow Android Developers, have you seen any pattern where Incredible > users report problems due to files > disappearing on a storage card? What, if anything, were you as a > developer able to do about it? > > In fact, even if not on an HTC Incredible, have you had ever had bugs > reported that came down to files missing from storage card? What was > the cause? > > If you want code, here is some: > > I am calling: > SQLiteDatabase.openDatabase(path, null, > SQLiteDatabase.OPEN_READWRITE); > > That succeeds when the file exists. When the file has mysteriously > disappeared, it fails.
I've always been leery of putting SQLite databases on external storage (pre-Honeycomb) for fear that I wouldn't find out about the storage being mounted in time to prevent some database I/O, and I wasn't sure what that might cause. The only other thing I can think of that's related is: http://stackoverflow.com/questions/4718934/sqlite-issues-with-htc-desire-hd/4720058#4720058 It's a different model and different symptoms, but ties back to HTC SQLite oddities, which is the only reason I mention it. It's a stretch, to be certain. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.2 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en