But then you proceed to reuse RunActivity for this. The end result is you get a display of RunFragment with the UI fields filled in for the last Location in the Run. You can click the Start button and it will start appending new locations to the existing Run. and stop doing this when the Stop button is clicked.
I’m lost. Why would we reuse RunActivity for this? Why would we want the user to be able to start adding new locations to an existing run? I can maybe see a need for the user to stop recording new locations (to eat or sleep) and then restart the recording later, but that would require more intelligence in the app to know when a run is completed or to be continued.
Why don’t we want a view where the user could edit the run, deleting locations that are redundant or not wanted, or to delete the entire run? This would allow us to see how SQLite deletes are performed at the different levels.
BTW, I am surprised that I am the only one giving you feedback like this. Does anyone else reading this book question anything (other than errata)?