# Local DB issue with APK file

**URL:** <https://community.thunkable.com/t/local-db-issue-with-apk-file/62691>\
**Category:** Questions about Thunkable X\
**Created:** [December 31, 2018, 5:53am UTC](https://community.thunkable.com/t/local-db-issue-with-apk-file/62691 "2018-12-31T05:53:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mchr70](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@mchr70](https://community.thunkable.com/u/mchr70)\
**Post date:** [December 31, 2018, 5:53am UTC](https://community.thunkable.com/t/local-db-issue-with-apk-file/62691/1 "2018-12-31T05:53:35Z")

</div>

Hello,  
While testing my app’s APK file, I noticed that the data modified on a LocalDB are not saved, when I restart my device for example. Is it a known bug?

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [January 1, 2019, 4:12pm UTC](https://community.thunkable.com/t/local-db-issue-with-apk-file/62691/2 "2019-01-01T16:12:56Z")

</div>

Hi @mchr70, happy new year.

What blocks are you using to save and retrieve your data in the localDB?

Thanks.

---

<div class="post-metadata">

**Author:** ![mchr70](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@mchr70](https://community.thunkable.com/u/mchr70)\
**Post date:** [January 1, 2019, 7:18pm UTC](https://community.thunkable.com/t/local-db-issue-with-apk-file/62691/3 "2019-01-01T19:18:04Z")

</div>

Hello Domhnall,  
Happy new year!  
Thank you for your answer. I made a very simple project to demonstrate which blocks I use:

[https://x.thunkable.com/projectPage/5c2bb47530d6865a74df067e](https://x.thunkable.com/projectPage/5c2bb47530d6865a74df067e)

I retrieve the “language” value from the database and store it in a variable. Then I modify this variable and I store it again in the database.  
The change is also not visible in the data table.  
Thank you

---

<div class="post-metadata">

**Author:** ![paulmw](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@paulmw](https://community.thunkable.com/u/paulmw)\
**Post date:** [January 2, 2019, 5:39pm UTC](https://community.thunkable.com/t/local-db-issue-with-apk-file/62691/4 "2019-01-02T17:39:02Z")

</div>

Right now the values in the localDb are not saved between sessions. They work like variables do, where the value will be reset when you start the app again. We will add the ability to save the values between session in a future release.

---

<div class="post-metadata">

**Author:** ![yurgen](https://avatars.discourse-cdn.com/v4/letter/y/5daacb/32.png) [@yurgen](https://community.thunkable.com/u/yurgen)\
**Post date:** [March 14, 2021, 9:43pm UTC](https://community.thunkable.com/t/local-db-issue-with-apk-file/62691/5 "2021-03-14T21:43:39Z")

</div>

> [@paulmw](#):
>
> We will add the ability to save the values between session in a future release.

When will you do it?

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:52am UTC](https://community.thunkable.com/t/local-db-issue-with-apk-file/62691/6 "2024-11-08T11:52:11Z")

</div>


