Answered by:
Show popup when i exit from app

Question
-
Hey,
I want to add a feature in my app, When i press backbutton for exit then a popup appear.
Deepak
Saturday, August 9, 2014 12:34 PM
Answers
-
You cannot exit Windows Store apps be design. They are supposed to run in the foreground, suspended in the background and terminated by the system.
There is a way to close an app, using MSApp.terminateApp but it will create an error report in the local system (and in the Store, if its an app deployed via Store), so that is totally not supported and only there to close the app in serious error conditions.
As for popups in general, there is the MessageDialog.
- Marked as answer by Jamles HezModerator Monday, August 18, 2014 1:40 AM
Saturday, August 9, 2014 9:47 PM -
Hi Deepak.ker,
Some additional information besides pkursawe, App can only be closed by user or terminated by system but cannot control by your code. See this for more information: App close
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- Edited by Jamles HezModerator Monday, August 18, 2014 1:40 AM
- Marked as answer by Jamles HezModerator Monday, August 18, 2014 1:40 AM
Monday, August 18, 2014 1:40 AMModerator
All replies
-
You cannot exit Windows Store apps be design. They are supposed to run in the foreground, suspended in the background and terminated by the system.
There is a way to close an app, using MSApp.terminateApp but it will create an error report in the local system (and in the Store, if its an app deployed via Store), so that is totally not supported and only there to close the app in serious error conditions.
As for popups in general, there is the MessageDialog.
- Marked as answer by Jamles HezModerator Monday, August 18, 2014 1:40 AM
Saturday, August 9, 2014 9:47 PM -
Hi Deepak.ker,
Some additional information besides pkursawe, App can only be closed by user or terminated by system but cannot control by your code. See this for more information: App close
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- Edited by Jamles HezModerator Monday, August 18, 2014 1:40 AM
- Marked as answer by Jamles HezModerator Monday, August 18, 2014 1:40 AM
Monday, August 18, 2014 1:40 AMModerator