I use reading and writing to the database without any problems . But I can not find out the difference. I searched on Internet but it \'s not quite clear. Can anyone tell me
Taken from my deleted answer here (this question is a duplicate of that one).
In normal situations,
getReadableDatabase()will return the same writable database returned bygetWritableDatabase().However, should it not be possible to return a writable database,
getWritableDatabase()will fail, whereasgetReadableDatabase()will attempt to return aREAD_ONLYdatabase.