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
1
vote
1 answer

Suspend/Resume/Tombstone simulation in Windows Phone 8.1 Emulator

How can I simulate the suspend mode in the Windows Phone 8.1 emulator? The Suspending event has to be fired. Thanks!
1
vote
1 answer

How fast WP7 would close app on deactivation via Windows button?

Wondering, what i'd be able to do before app would be deactivated? If i'm sending a network request and user would press Windows before answer would come, request would be cancelled and a RequestCancelled exception would be thrown on app…
1
vote
2 answers

Rendering a WriteableBitmap within Application_Deactivated event causes app to fail to re-activate after suspension

I am building a Windows Phone 8 version of an app that I already have for Windows Phone 7.1, which works perfectly. Inside the Application_Deactivated event (in App.xaml.cs) I attempt to update the secondary tile of my app, if pinned to the start…
Icarus
  • 139
  • 2
  • 13
1
vote
1 answer

Tombstoning a List on Windows Phone 8

I am trying to save the state of a listbox on wp. I used this this method to tombstone the content of a textbox and it worked perfectly but I am having problems for a list of strings : Basically I have a list of strings called beta and I have to…
user2505650
  • 1,293
  • 6
  • 20
  • 38
1
vote
0 answers

Change the last page before app goes to suspended state (WP8)

When the user presses and holds back button (or presses Win btn), then app is deactivated and app switcher is shown. The problem is that app's last page should not be visible in app switcher, because there is a sensitive data. How can I hide last…
1
vote
2 answers

Windows Phone: Forward to different screen when app wakes up after sleep/phone lock

I've developed a windows phone 7 app that I once a user locks the phone whilst running the app, when the phone gets unlocked that the app must forward the user to a different .xmal page. The reason being is that the app displays sensitive…
user818700
1
vote
1 answer

WP7 Tombstoning with Protobuf-net

I'm using protobuf-net in WP7 to serialize my data. I initialize my custom types at launch of app, but I have a big problem: If I launch my app in the background (tombstoning) for a few minutes, when the app then becomes active an exception is…
1
vote
1 answer

What happens when there is a conflict between FG and BG sync in WP7?

I have an app that has a BG module which is forced to run at every 4 mins for testing purpose, and it works fine. Once I launch the app(first launch) and register with the server the contents are displayed and I exit the app. The app goes to…
Apoorva
  • 1,047
  • 13
  • 33
1
vote
1 answer

WP7 - Strange behavior during Application Deactivation and Activation

I'm experiencing some strange behavior that I can't seem to find any information on. When I navigate away from my application and then navigating back (e.g. by launching BingMapsDirectionsTask or simply locking and unlocking the device) the entire…
Fedza
  • 11
  • 2
1
vote
2 answers

Tombstone Issue

I've been experiencing this on my phone when I try and tombstone my application. Type 'System.Text.UTF8Encoding' with data contract name 'UTF8Encoding:http://schemas.datacontract.org/2004/07/System.Text' is not expected. Add any types not known…
firebellys
  • 906
  • 2
  • 11
  • 26
1
vote
1 answer

Tombstoning working, but does my app need it?

I am using the Tombstone helper from Codeplex and I am a bit confused, I thought that it saves the state of your app's controls i.e Textbox, and I use the code on one page of my app and don't use it on another page, but when I test it it just saves…
M_K
  • 3,247
  • 6
  • 30
  • 47
0
votes
2 answers

WP7 tombstoning, saving sprite into Current state not working

I am working on a WP7 game. I am using Game state managment (http://create.msdn.com/en-US/education/catalog/sample/game_state_management , but I think its not important ) I have problem with saving data into …
0
votes
0 answers

DataBindings lost during App-Switching/Tombstoning in WP7

I've set up a viewmodel to bind a listcontrol to an ObservableCollection in my program. A UI control on the page adds and deletes objects to the collection, which works fine as the list is automatically updated. After App-Switching and returning to…
Jay Kannan
  • 1,372
  • 3
  • 14
  • 30
0
votes
1 answer

Tombstoning listbox in WP7 application

I have a listbox in my WP7 app, and I would like to keep/save listbox inserted items when I reload the application. I tried this, but it not work: protected override void OnNavigatingFrom(NavigatingCancelEventArgs e) { …
0
votes
2 answers

Application deactivation in Windows Phone 7 - caused by user or system. How to distinguish?

Is it possible to distinguish the cause of application deactivation? Aplpication enters the deactivated state when users press back button or there is a call\SMS. My question is - how to distinguish the cause? It is important to prevent cheating…
szysz3kster
  • 107
  • 1
  • 6