Greetings, all.
I have seen a lot of threads related to the device sleep subject, but none seem to hit the mark for my purposes. My question is:
Would the following steps accomplish the task of logging off the user in my app when the device goes to sleep?
1. Device is going to sleep
2. I prevent it by PhoneWakeState.KeepAlive (I assume this goes in Act Pause.)
3. Log off user in my app
4. Release KeepAlive
Since I have no experience in this area, does anyone have a code snippet on this? I am certain that this requirement is not new.
Thank you in advance for your replies.
Sandy
I have seen a lot of threads related to the device sleep subject, but none seem to hit the mark for my purposes. My question is:
Would the following steps accomplish the task of logging off the user in my app when the device goes to sleep?
1. Device is going to sleep
2. I prevent it by PhoneWakeState.KeepAlive (I assume this goes in Act Pause.)
3. Log off user in my app
4. Release KeepAlive
Since I have no experience in this area, does anyone have a code snippet on this? I am certain that this requirement is not new.
Thank you in advance for your replies.
Sandy