1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to keep Shared Preferences data after force close?

Discussion in 'Android Development' started by s_elissa, Apr 26, 2021.

  1. s_elissa

    s_elissa Lurker
    Thread Starter

    Hello, I am saving some data in my project to the Shared Pref class that I create.
    Everything is working fine until I force close the app and re-open it
    All of the data is being reset; how can I solve this issue?
     



    1. Download the Forums for Android™ app!


      Download

       
  2. codesplice

    codesplice Elite Recognized Moderator
    Moderator

    I'm not a developer so I'm afraid I won't be able to assist, but it might help if you posted some of your code. You can wrap it in [code]...[/code] tags to make it easy to read.

    Code (Text):
    1. like this
    2. see?
     
Loading...

Share This Page

Loading...