>From my guess the database gets corrupted because of (some) flash disk 
controllers that lie to the OS and do not flush/sync properly the FS before 
crash/reboot, so even with transactions the DB gets corrupted in some 
cases. 

Le vendredi 20 septembre 2013 02:34:51 UTC+2, Kostya Vasilyev a écrit :
>
>  Yes, but if the database can't be opened at sqlite level, it would only 
> help the app know that, not recover the data... And there are other ways to 
> detect that. Back to square one: why do they get corrupted in the first 
> place?
>
> Nathan 20 пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ 2013пїЅпїЅ. 4:05:53 
> пїЅпїЅпїЅпїЅпїЅпїЅпїЅ: 
>
>
>
> On Thursday, September 19, 2013 4:31:23 PM UTC-7, Kostya Vasilyev wrote:
>>
>>  
>> http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.1_r2/android/database/sqlite/SQLiteDatabase.java
>>
>> Look for a method called onCorruption.
>>
>
> It looks like we could, in 4.0+, define a custom DatabaseErrorHandler that 
> could do something different. 
>
> I have not done so. 
>
> Nathan
>  
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to 
> android-d...@googlegroups.com<javascript:>
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com <javascript:>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to android-developers+unsubscr...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
> 

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to