I’m implementing an application that should not stop running on clicking any button on the device. Is this possible and how can I achieve this?
Regards
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.
Windows Phone 7 does not support multitasking (running applications in the background). Read more about application lifecycle from documentation. Mango the next version of Windows Phone 7 will support running some code in the background.
Currently the best you can do is save the application state when the app is quit or sent to the background. For simple settings (key-value pairs) you can use
IsolatedStorageSettingsand for more complicated stuff you’d useIsolatedStoragefile system.This is a really great article about application life cycle and state saving.
And here is an overview of
IsolatedStorage.