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
2
votes
2 answers

Isolated Storage security exception on windows phone

Im trying to persist some data but im getting an error here. Declaration of isolated storage inside my public partial mainpage class IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings; implementation of…
Diego Vin
  • 193
  • 2
  • 12
2
votes
2 answers

Default page for restoring app state while tombstoning

I am wondering if there is any way to restore the page state to a standard page in the app after tombstone. For example if the app been tombstoned while the user is on page 2, the restored page always will be the page 1. I have problem on how to…
user1004994
  • 63
  • 2
  • 7
2
votes
1 answer

Is it possible to send an HttpWebRequest from a deactivated event handler in WP7?

In a networked XNA WP7 game, I want to notify the server when the game gets deactivated, e.g., when I press the search button during the game. The game uses HTTP requests for networking and it seems like HttpWebRequests do not get handled…
2
votes
1 answer

Custom serialization in Caliburn.Micro 1.1

I'm upgrading a 1.0 WP7 application to CM 1.1. Among other stuff, I'm removing the old attribute-based tombstoning and implementing storage classes. This typically involves creating a class for each VM for storage purposes, deriving it from…
Naftis
  • 4,393
  • 7
  • 63
  • 91
2
votes
1 answer

XNA - WP7 - TiledLib - Serialization and tombstoning

I am currently writing a 2D game using the XNA Game Studio 4.0 framework for Windows Phone 7. I have gotten to the stage where I am tackling the problem of tomb-stoning the game if the user would like to save/load or if they resume the game at a…
Darren Reid
  • 2,322
  • 20
  • 25
2
votes
1 answer

How to prevent WebBrowser control to lose web state while navigate to other WindowPhone Page?

I have one page with WebBrowser control in it. When I Navigate with NavigationService.Navigate() (next page xaml) and then back the WebBrowser control loses his web state. How can I make the WebBrowser control not unload when navigate to other…
Ishai
  • 169
  • 10
2
votes
3 answers

Windows Phone 7 : resume to the selected pivot item

As i'm using the Pivot control in my app, I wonder how can I resume to the last selected pivot item after the user tombstoned the app (Launched the App, pressed the windows button and pressend the back button to resume)? (I tried to add some code in…
Zakaria
  • 14,892
  • 22
  • 84
  • 125
2
votes
3 answers

WP7 Tombstoning - user expectations?

A general question regarding tombstoning WP7 applications. What do you think a users expectations are? And what level of tombstoning support are you providing in your application? For example, if you have an application that navigates across…
ColinE
  • 68,894
  • 15
  • 164
  • 232
2
votes
1 answer

tombstoning with pivotview containing N pivot items

I have a pivotview in which the items are created dynamically. The views in each one is flyweight & virtualized so memory does not exceed the max allowed. When tombstoning occurs, I save the object which the number of pivot items is based on as…
Ben
  • 16,124
  • 22
  • 77
  • 122
2
votes
4 answers

Navigation & Tombstoning - Best Practices

I'm just learning about how to navigate between pages and tombstoning. I'm wondering if anyone can point me to some good examples that not only show me the basics of how to use Navigation properly but also good examples of more complicated and…
webdad3
  • 8,893
  • 30
  • 121
  • 223
2
votes
3 answers

Windows Phone application deactivation detection on Page

I am working on Windows Phone. When My application deactivated and goes into the background, I want to detect the application deactivation on OnNavigatedFrom event so that I can implement some logic if application goes into the background. How can I…
atul
  • 135
  • 1
  • 2
  • 8
2
votes
1 answer

Windows Phone - Tombstoning

Possible Duplicate: WP7: Is it possible to intercept the backstack before the journal thumbnail is created/stored I have an app with personal data that should not be displayed in the task viewer of WP8 when the app is send to background. My idea…
2
votes
2 answers

How to tombstone windows phone apps in c#

How do I tombstone a csharp/XNA 4.0 app in csharp? Googling tutorials only shows how to do this in silverlight and the app I've made is in a visual studio 2010 Windows Phone Game project without silverlight.
Donovan
  • 31
  • 2
  • 6
1
vote
1 answer

Serialize VM vs state class

After my wonderings on the events registration (you can find here ViewModel Event Registration and ViewModel Lifetime), now I'm thinking about viewmodel tombstoning: In case of Tombstoning, is the ViewModel serialization a good approach ? I'm…
SkyG
  • 275
  • 3
  • 11
1
vote
1 answer

ViewModel with dependencies on Services + tombstoning

What is the recommended way to set up / inject dependencies in a viewModel after tombstoning given that when the app deactivates you typically add the ViewModel to the State dictionary and then before your app reactivates the framework deserialises…
Abhijeet Patel
  • 6,562
  • 8
  • 50
  • 93