Why can’t we use shared preferences here?
Shared preferences
We can use shared preferences but it depends on the data you want to store.
Shared Preferences is a key-value store where you can save data under a certain key. This is easy only if you need to store a single value or small amount of data.
but in this case we are using Sqlite which is used to store a large amount of the same structured data as a database similar to mysql, which can be queried to get a subset of data you require.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.