I need to save to an isolated storage the total time that the user spent on an application.
I think I should know the time of starting and finishing execution.
If there is any way to do that please..
Thanks..
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are couple methods in the App.xaml.cs file that are directly related to the execution model:
You can hook this methods and provide there needed logic which, actually, is pretty straightforward:
spentTime;spentTimefromState;Stateto be able to get it further;spentTimeto Isolated Storage.Some useful links for understanding WP Execution Model: