Tour Preview

Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › Sotrage on Android is Not Saved

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22715

    Barazi Ala

    Hi,

    I deployed my application to Android device. Local storage work fine on desktop but not on Android. Why so?

    I gave permission for the app to use the storage.

    #22721

    Alex
    Felgo Team

    Hi,

    what type of local storage are you using, is this for data or files? What component(s) are you using in your code?

    If you can provide a code example it might be easier to find the issue.

    Cheers,
    Alex

    #22723

    Barazi Ala

    Hi Alex,

    I tried two QML components Storage and WebStorage. Both work fine on desktop. This mean that all the changes are saved. Closing the application and opening it again preserve the changes that I have made. On Nokia 8.1 model TA-1119

    Android 10 kernal 4.9.179-perf+ #1 Fri Dec 13 21:56:57 CST 2019B Buildnumber 00WW_4_15B_SP03

    Closing the app delete remove the stored data.

    I use Component.onDestruction method to write the last data to the storage when user close the application .

    #22727

    Barazi Ala

    Just to update the status for other.

    The problem was that I setValue for the Sotrage object only once, when user quit the application. Thus, I put setValue under Component.onDetsruction{}.

    I think that this signal work only on desktop when user click the close button but not on Android when user close the application using apps manager.

    The solution is to save to Storage after every change made by user

Viewing 4 posts - 1 through 4 (of 4 total)

RSS feed for this thread

You must be logged in to reply to this topic.