Reasons triggering database issues can be various and are mostly due to memory shortage or for certain crash patterns.
This How-To shows how to recover backups created using the "automatic backup" feature mentioned in the first section. Mostly, you can accomplish this yourself and don't need help from my side. In case you can't recover your data using the description below, please check viewtopic.php?f=8&t=679 for an alternative (but pretty labor intensive) approach.
The step by step description is iOS specific. For Android, the device needs to be rooted to allow access to the files in LapTimer's sandbox. Otherwise, the process is pretty much the same.
- Before you start, please make sure you export any laps you have recorded *after* the database reset so you can add them again later. Use the export to .hlptrl and make sure your data arrives in mail - i.e. the export has been successful.
- Make sure the LapTimer app is not alive and kill the process to be sure. To kill LapTimer, double press the home button, scroll to LapTimer, and swipe it to the to kill the process going on in background.
- To start recovery, start iTunes and connect your iPhone. You can browse through LapTimer's files as follows: select the iPhone in the top left, select Apps, scroll down to iTunes File Sharing, select LapTimer. In the bottom right, you will see all files sitting in LapTimer's Documents folder. NB: iTunes' scrolling behaviour is strange for this list... In case you can't scroll the list, move the cursor a bit out of the list and try again.
- The Documents folder will show lots of .pdb files representing your current database, and sub folders named "recovery*".
- Inspect the recovery directories for recent timestamps to identify a candidate for restore. Most probably you will find more than one of these folders. The newer they are, the more recent the data is. As recovery directories may have been created for your reset database too, make sure you check the amount of files / data too. If e.g. the latest restore folder has significant less database files than the one before, chances are good they do not include the data you want to restore.
- Before restoring, copy all .pdb files from the Documents folder to your desktop. In case the recovery approach does not work, it may be good to have this additional backup...
- Next, delete all .pdb, .pdb.save and .pdb.dirty / other dot files in Documents. Take care to find all the files named.
- Copy all .pdb files from the restore candidate up to the Documents folder.
- Finally, pray and start LapTimer. Lap List should come up with the laps up to the automatic backup now.
- In case you have exported new laps in step 1, import these laps to have the complete set of laps available again.
As a standard reminder: please export your full database to .hlptrl regularly. It is not complicated and far easier to restore than the pretty technical process outlined here.
- Harry