For querying content provider which one to use, getWritabledatabase or getReadabledatabase?
can use either
preferred to use getWritableDatabase
both are not required.
Query() means reading the data. so getReadableDatabase() is sufficient.
If you are doing too many operations on database like querying, updating frequently in some random order, then it doesn't really make any sense in using getReadabledatabase as it can be used only to read the values.
Based on your app requirement you can judge the usage. If you are only reading the values constantly then you can go for getreadabledatabase.
Back To Top