I am new to WP8 development, I need to know is there a way to trace the application stack change (check if application comes from deactive (dormant) to active (tombstoned) state) event in wp8.1 same as android gives us. If it is how we can trace that particular event and before opening the app change stack with my own app. Actually I am planing to create an applock application same as android have.
Thanks and Regards
Inderjeet Singh
It is possible to 'track' the state of your app - not the application stack. However it also depends on the platform you are targeting:
for WP8.0 and WP8.1 Silverlight - you have Activated and Deactivated events. For more help - read App activation and deactivation for Windows Phone 8 - there are more cases to be considered.
for WP8.1 WinRT - you have Suspending and Resuming events - for more help read Application lifecycle (Windows Runtime apps) - there are also more cases to be considered here.
I doubt you will be able to exchange the opened app.