android / codelab-android-room-with-a-view

Apache License 2.0
746 stars 490 forks source link

Room Database #253

Open ShraddhaGade opened 8 months ago

ShraddhaGade commented 8 months ago

Hi ,

I m using aosp code 13 and 11 , I have a evk board where I flash those 11 and 13 binaries and board does not have a batterie.

Means I can turn off the device with switch.

Now When I save a data , it is displaying also but once I save I m immediately turn of my device and again turn on. At that time saved data are not coming. This is not with this sample but even in contact application in aosp it happening.

So as per my undestading sqllite saves data in cache and then permanently , but before it saves from cache to permanently. I m switching off the device and issue is coming. Issue will not come if I save data and switch of after some time.

So question is any api is there which immediate persist in data? Pls keep a note that I m switch of device with mobile phn this issue is not coming as mobile doesnt have any thing which immediatly just off the device