Menu

#39 Stats lost after update

4.0
open
None
2025-10-29
2025-10-27
No

Manufacturer and Model of device: Samsung Galaxy s23 Ultra
Android OS version: Android 15 and One UI 7.0*
SolitaireCG version: 4.1
App store used to install SolitaireCG: F-Droid

Having just updated to version 4.1, I have lost my stats. Unfortunately I'm unable to tell you what version I update to 4.1 from, as I had not been prompted to update in a little while, so I can't remember what version was installed during the last update. I have also recently updated my phone though, from Android 14 and One UI 6.x, to 15 and 7.0.

I have searched through the closed tickets and it appears that the issue of lost stats has happened in the past (https://sourceforge.net/p/solitairecg/tickets/12/).

This may or may not be related but as the stats have now been lost, I don't think it's worth opening a separate ticket but a few weeks ago, before updating to version 4.1, my stats changed erroneously. I went from having a 99.7% (or so) win record with a single digit number of losses for Freecell (alt-colour), to a 100% win record with no recorded losses. I didn't think much of it at the time but I thought it was worthing mentioning.

I do remember roughly how many wins I had before losing the stats. Is there any way to manually set the win number in lieu of actually restoring the now presumably lost stats?

Discussion

  • Curtis Gedak

    Curtis Gedak - 2025-10-28

    FIRST ISSUE: LOSS OF STATISTICS ON UPGRADE

    I confirmed that this happens on upgrade from 3.4.1 to 4.0 with the following steps:

    1. I installed Solitaire CG v3.4.1 from F-Droid.

    2. I played 3 games of Golf (wrap cards). I won 1 game and lost 2 games so Stats showed Wins: 1, Attempts: 3.

    3. I updated SolitaireCG to v4.0 via F-Droid.

    4. Upon opening SolitaireCG it showed me the prompt that indicates to long press on the "^" to access the menu. This menu is only displayed on startup if no saved game information is found. Hence I knew the Stats would be cleared.

    5. I selected Golf (wrap cards) and checked Stats which showed Wins: 0, Attempts: 0. This confirms that the Stats were cleared on upgrade from 3.4.1 to 4.0.

    6. I played 3 games of Golf (wrap cards). This time I also won 1 game and lost 2 games so Status showed Wins: 1, Attempts: 3.

    7. I upgraded SolitaireCG to 4.1 via F-Droid.

    8. Upon opening SolitaireCG it showed me a game other than Golf (wrap cards).

    9. I selected Golf (wrap cards) and checked Stats which showed Wins: 1, Attempts: 3. In this case the Stats were preserved.

    HYPOTHESIS: The software changes between SolitaireCG versions 3.4.1 and 4.0 involved a bump in minimum Android 1.6 (Donut - API 4) to Android 5 (Lollipop - API 21). The loss of statistics might be due to this major underlying Android change.

    The minimum required Android version remained the same between versions 4.0 and 4.1. Since the Stats were preserved on this upgrade this lends credence to the hypothesis that the change in minimum Android version caused the loss of stats.

    Note that immediately after the upgrade from 4.0 to 4.1 a game different than Golf (wrap cards) was shown. I suspect that this was caused the the addition of the game Double Freecell which involved a change in the internal game numbers in the software.

    SECOND ISSUE: STATS INCORRECT

    This is a known issue as you indicated.

    EDIT: 2025-10-29 - Fixed incorrect link to Ticket 12. Correct link is:

    Ticket 20 Freecell: wrong calculation of matches won/played
    https://sourceforge.net/p/solitairecg/tickets/20/

    Unfortunately we have not been able to identify a series of steps that causes the issue of incorrect Stats.

     

    Last edit: Curtis Gedak 2025-10-29
  • Curtis Gedak

    Curtis Gedak - 2025-10-28

    Is there any way to manually set the win number in lieu of actually restoring the now presumably lost stats?

    The game does not provide a way to manually edit the stats.

    However, if you are keen then you can learn how the game status is stored and perhaps develop your own method to edit stats. The code that saves and loads the game status is located at:

    https://sourceforge.net/p/solitairecg/code/ci/master/tree/app/src/main/java/net/sourceforge/solitaire_cg/SolitaireView.java#l303

     
  • Curtis Gedak

    Curtis Gedak - 2025-10-29

    SECOND ISSUE: STATS INCORRECT

    I noted the incorrect ticket number for this in a previous post. The correct ticket is

    Ticket 20 Freecell: wrong calculation of matches won/played
    https://sourceforge.net/p/solitairecg/tickets/20/

     

Log in to post a comment.

MongoDB Logo MongoDB