Questions tagged [tombstoning]

For Windows Phone applications, tombstoning is the process in which some data about the application state are saved upon app termination so that this state is re-created if the user navigates back to the tombstoned application (in order to simulate multitasking).

From the MSDN article about the Execution Model for Windows Phone, tombstoning is:

The process in which an application is terminated, but some data about the state of the application and the individual pages within the application is preserved. The data that is saved includes the currently displayed application page and the back stack of pages that had previously been visited in the application. If the user navigates back to a tombstoned application, the application is re-created, and the current page and page history are restored automatically.

Concerning the "tombstoned" state of an application:

A tombstoned application has been terminated, but information about its navigation state and state dictionaries populated by the application during Deactivated are preserved. The device will maintain tombstoning information for up to five applications at a time. If an application is tombstoned and the user navigates back to the application, it will be relaunched and the application can use the preserved data to restore state. Otherwise, the application is simply terminated.

102 questions
0
votes
2 answers

Windows Phone App rose an exception when resuming

I'm developing a Windows Phone App. I submitted it to Microsoft and they sent me back a file describing an error that occurs when resuming the app (it's relative to the 5.2 Performance and Resource Management, point 5.2.3). To reproduce the error, I…
Zakaria
  • 14,892
  • 22
  • 84
  • 125
0
votes
1 answer

Windows Phone 7: Establishing which page is being activated during the Application_Activated event

I am following the general best practice principles of restoring my persistent and none persistent state and objects when a tombstoned app is re-activated. Which can be found in this very good Microsoft article here The samples only show a simple…
NER1808
  • 1,829
  • 2
  • 33
  • 45
0
votes
1 answer

Questions about tombstoning in Windows Phone 7

I have a weird probleme : I navigate to a view, I check one or more CheckBox and navigate back (I didn't override the navigateFrom method). Then I navigate to my view again, and the checkbox aren't checked. Is this even normal behavior ? I this part…
Thomas Joulin
  • 6,590
  • 9
  • 53
  • 88
0
votes
0 answers

Caliburn.Micro restores ViewModel after navigating back

I have an issue with the tombstoning mechanism of Caliburn.Micro. For example, I have three Views/ViewModels: MainPageViewModel: displays each item in a list DisplayPageViewModel: displays detailed item information MaintainPageViewModel: add or…
0
votes
0 answers

How to get the object reference of backstack pages

I am trying to save a list of backstack pages that are Tombstoned, so that when I navigate back to them, I can compare if they are present in this list. If yes, I'll restore its state. Currently my code looks like this. public partial class App :…
Rishabh876
  • 3,010
  • 2
  • 20
  • 37
0
votes
1 answer

Restoring static properties of a class inside a portable class library, after tombstoning in windows phone 8.1

I have a application built for both windows 8.1 and windows phone 8.1. There is a non static class with static members in a portable class library which is being shared by both tablet and phone projects. In phone, on tombstoning the static…
0
votes
0 answers

security exception thrown while testing WP8 app Life cycle?

I'm developing a WP 8 Application, and by testing the application life cycle i found that it throw exception when i activate the app. ( either by choosing from phone backStack or even by pressing back key), By tracing i find that it enters…
0
votes
1 answer

PhoneApplicationService.Current.State vs IsolatedStorageSettings windows phone

I need to pass a large set of data from one page to another. I have two choices as far as I know, PhoneApplicationService and IsolatedStorageSettings. PhoneApplicationService creates a lot of delay in when passed between pages. So, I used…
0
votes
0 answers

Azure Mobile Service, Monogame, Windows Phone 8 and resuming a tombstoned app

I have an app that requires immense amount of resources relative to the phone capabilities. It would appear that when I press the windows phone, the app get instantly tombstoned as resuming it doesn't provide the same result anymore. As far as I can…
Muhwu
  • 1,151
  • 1
  • 10
  • 26
0
votes
1 answer

NavigationContext.QueryString isn't cleared after tombstoning in WP8 Silverlight page app

Let's consider a two-page Silverlight WP application: the main page PageA, and another PageB we can open from PageA and pass a parameter into it. As Charles Petzold suggests in his bestseller 'Programming WP7', we can instantiate PageB using a…
TecMan
  • 2,743
  • 2
  • 30
  • 64
0
votes
2 answers

WinPhone app event to react on app process termination

When we deactivate a WP app, it can be tombstoned and terminated later by the OS. I need to save some unsaved app data to a persistent storage when the process is terminated, but not before this. Obviously, the Deactivated event cannot be used for…
TecMan
  • 2,743
  • 2
  • 30
  • 64
0
votes
3 answers

How to save a coordinate list after app is tombstoned?

I have a list of coordinates saved in a map class that are manipulated to draw a route between the points, but I'm not sure how to save these points when the application is closed and then reopened. This is how I currently save the points within the…
Brian Var
  • 6,029
  • 25
  • 114
  • 212
0
votes
0 answers

MvvmCross Windows Store App - Testing suspend/resume (tombstoning)

I'm trying to test "tombstoning" in my C# Store app that is based on mvvmcross. I've based my code on Stuart's instructions. public class SavedState { public int EntityId { get; set; } } public void ReloadState(SavedState…
Steve Macdonald
  • 1,745
  • 2
  • 20
  • 34
0
votes
1 answer

Tombstonning Not Working on wp8

I am building a MVVM Windows Phone 8 application. I read this post to try to resolve tombstonning problems : http://www.scottlogic.com/blog/2011/10/03/a-windows-phone-7-1-mango-mvvm-tombstoning-example.html This example implements Tombstonning on a…
user2505650
  • 1,293
  • 6
  • 20
  • 38
0
votes
1 answer

Windows Phone - Serialization for tombstoning

I'm looking for a Serializer for Windows Phone 8. The DataContractSerializer doesn't work for me because the data members needs to be public and they need public setters. I don't need a huge library for tombstoning, I think a smart serializer would…