I am building a DashClock extension in which i need to store some values in SharedPrefs just before the device shuts down.
So, does the DashClock widget calls onUpdateData() method before device shuts down? Or, whether it calls onDestroy()?
Or else, should i listen for ACTION_SHUTDOWN broadcast?