Information when watch is turning off

Former Member
Former Member
Hi, I would like to know if the user turns off his watch, can I recover this information (I want to save data before the watch turn off)?
  • Former Member
    Former Member
    I tried the onStop() solution, and this method isn't called when the watch is turning off by the user.
  • Former Member
    Former Member
    That is unfortunate. I have reported it as a bug.

    The persistent storage solutions will only work on 3.0 devices in this case, which will not include the FR235. The best solution I can think of for your situation is to save the time that the application was started in the onStart() method, and add a way to display this time in your application. If the application was shutdown, the user would have to start it back up if they wanted to hide the fact that it was. Doing so would generate a startup time more recent than when they received the device.
  • Since you are writing things to a log file (Sys.println()) couldn't you just write a line with a timestamp in onStart() and onStop(), and with the log see if two onStarts are called without an onStop in between?
  • Former Member
    Former Member
    Hi Brian, thanks for all your answer. yes it could be a good idea, I will try to implement this next week !
  • Former Member
    Former Member
    Hi jim_m_58, I tried your solution, and like I said to Brian, the onStop() method isn't called when the watch is turning off by the user.