I've got a big code base we just migrated to phone and are beginning to deal with tombstoning and deactivation. In the meantime I'd like to stop the app on Application_Deactivated so that it will call Application_Launching rather than Application_Activated when reactivating from tombstone. Anyone know of a way to accomplish this?
Windows Phone 8 prevent the app from ever being re-activated and restart on next launch
121 Views Asked by jchristof At
1
There are 1 best solutions below
Related Questions in WINDOWS-PHONE-8
- How did windows application "phone link" open the webpage automaticly can IT also open the files on our computer
- Possible to create an app on Windows Phone (WP) using Visual Studio 2022 or later
- Development of old window phone Apps using flutter
- OpenID Connect in c# for Windows Phone app
- How to generate refresh and access token for Windows phone app
- Exception in Json response when Submitting to webapi from WP8
- Passing Class Object to WCF Service c# wp8
- Identify Store App Type
- Why connectivity plugin network handler not working when navigation happens
- How to scroll listbox automatically when Scrollviewer present above it has finished scrolling
- Pixel by Pixel color conversion using WriteableBitmap
- Read stream from absolute uri
- error unhandled exception during loading desiger for the first time in visual studio 2012
- windows phone emulator not displayed , showing error 0x80131500
- How to get font file from windows phone
Related Questions in TOMBSTONING
- MVVMCross 6.4.3 Restore is not working as expected
- Cassandra Read time out on performing query in order to mass delete
- Caliburn.Micro restores ViewModel after navigating back
- How to get the object reference of backstack pages
- Restoring static properties of a class inside a portable class library, after tombstoning in windows phone 8.1
- security exception thrown while testing WP8 app Life cycle?
- PhoneApplicationService.Current.State vs IsolatedStorageSettings windows phone
- Get screen height in WP8 Silverlight app on page initialization after tombstoning
- Suspend/Resume/Tombstone simulation in Windows Phone 8.1 Emulator
- Windows Phone 8 prevent the app from ever being re-activated and restart on next launch
- Azure Mobile Service, Monogame, Windows Phone 8 and resuming a tombstoned app
- How fast WP7 would close app on deactivation via Windows button?
- NavigationContext.QueryString isn't cleared after tombstoning in WP8 Silverlight page app
- WinPhone app event to react on app process termination
- How to save a coordinate list after app is tombstoned?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As far as i know, you should not intervene in the application cycle and let OS handle things. I read that you should not use the following functionality. It is not advised to use it. Though, this is a way ::
Add this line to your
Application_Deactivatedhandler. This will terminate and kill your application. But then you won't find your app in the background. You will have to launch it freshly the next time you want to use it.If this is not what you want, and you wish exactly to restart the application on bringing it to foreground, then i don't see any direct way to do that. Thanks and cheers.