I need to know the application status i.e app is in resume state,active or any..programatically in windows mobile 5,6,7 OS phones.
Please help me for that...
I need to know the application status i.e app is in resume state,active or any..programatically in windows mobile 5,6,7 OS phones.
Please help me for that...
Like Chris pointed out, you are not going to be able to check a devices state and have it tell you what it was in. If the device is dormant or not running, your code is not going to run.
However, if you are using Windows Mobile 6, you can elect to receive notifications through the State and Notifications Broker whenever your device goes from one state to another by using the RegistryNotifyApp.
There is a Using the State and Notifications Broker in Native Code example that goes into details.
This tool was not available prior to version 6 of Windows Mobile.
The newer Windows 7 Phone OS is drastically different, and I have no experience with what it is capable of.