I am developing a data update form, to be used 'in the field'. It occurred to me to add the Lat/Long co-ordinates when the 'save' button is pressed.
Given that most time will *not* be spent in the update form, battery use should not be OTP.
Does this approach seem OK?
Steve
- Having added the Lib, I added in GPS as a ProcessGlobal, and Initialise it in the Activity_Create/FirstTime of the main (first) screen.
- I have a test for GPS-enabled in the Activity_Resume of this first screen (also works as a re-test, every time this home screen is returned to).
- The update itself is in a second activity; on Activity_Resume of this second Activity, I issue a Start(0,0), with LocationChange writing to more ProcessGlobal variables
- When the 'save' button is pressed in this second/update Activity, I include the current values of Lat/Long (last updated by LocationChange) in the update list
- On Activity_Pause in the second/Update form I issue a GPS Stop
Given that most time will *not* be spent in the update form, battery use should not be OTP.
Does this approach seem OK?
Steve