kaajjo / LibreSudoku

LibreSudoku - Sudoku app for android built with Kotlin + Jetpack Compose + Material3
GNU General Public License v3.0
412 stars 31 forks source link

Export Statistics #65

Open yoavzack opened 1 year ago

yoavzack commented 1 year ago

I think it could be neat if the game statistics could be exported. The "5 best times" info is great but as a math nerd I want to play with it a bit more, to view improvement over time etc.

I do not have the expertise to actually implement that, so I thought I would raise the idea here in case anyone have time to work on that.

nvllz commented 1 year ago

I second this. The ability to export and import statistics backups is a must have, as we all like to play with numbers :D

yoavzack commented 1 year ago

Since I (still) don't have the expertise to implement that as a feature, I tried to dig into the app data on the phone to find the database for my own, as a small project, but it looks like it just does not exists. I guess I couldn't find it, or maybe it is hidden somehow.

Does anyone know better? is that even possible?

kaajjo commented 1 year ago

Since I (still) don't have the expertise to implement that as a feature, I tried to dig into the app data on the phone to find the database for my own, as a small project, but it looks like it just does not exists. I guess I couldn't find it, or maybe it is hidden somehow.

Does anyone know better? is that even possible?

Statistics (best/average time, win streak etc.) are calculated in real time, and records are stored in database. I'm currently polishing app data restore/backup feature, after which I will work on more detailed stats and exporting them. I'm busy these days, so this will take some time

P.S: The app database is located in root/data/data/com.kaajjo.libresudoku/databases (to get there, your phone must be rooted, of course)

yoavzack commented 1 year ago

Statistics (best/average time, win streak etc.) are calculated in real time, and records are stored in database. I'm currently polishing app data restore/backup feature, after which I will work on more detailed stats and exporting them. I'm busy these days, so this will take some time

It's good to hear data restore and backup is on the list. Looking forward to seeing it live :)

P.S: The app database is located in root/data/data/com.kaajjo.libresudoku/databases (to get there, your phone must be rooted, of course)

Also, I should have known it will require to root my phone. Can't afford to do that right now (never done this before and don't want to risk my only phone), but thanks for the tip anyways!