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

Access to SMS and browser content tombstoning

WP7 newbie here.. In my application, I am using embedded web browser control to load an external web page. I have a PIN based validation step in that application, which involves 1) User Leaving the current application, (which has a external web…
1
vote
1 answer

tombstoning strategy in windows phone 7, how to save states of multiple pages

i want to know what are your strategies for saving state in a windows phone 7 (wp7) app. when i say state, i mean the model-view state of each page in the stack. recently, i asked a question at, problems with tombstoning in WP7, cannot tell if i…
jake
  • 1,405
  • 3
  • 19
  • 33
1
vote
1 answer

how to debug app in windows phone 7 that is not launched from visual studios

i am currently working on handling tombstoning for my app. to tombstone my app, i navigate 2 pages into my app (from the first page). i then hit the home button, then i hit the back button to get back to my app. after hitting the back button, all i…
jake
  • 1,405
  • 3
  • 19
  • 33
1
vote
1 answer

WP7 - Resume from the page I assigned

Lets assume I have two pages MainPage and DetailsPage. In details page user hits on start button then hits on the back button to get to the Previous Page. And If we don't have tombstone coding they will have blank page. Is it possible to resume the…
nacon
  • 95
  • 6
1
vote
1 answer

problems with tombstoning in WP7, cannot tell if i need to restore or instantiate/query new data

i've just run into the infamous tombstoning problem/issue in WP7. let's say i have 3 pages, FirstPage.xaml, SecondPage.xaml, and ThirdPage.xaml. the natural flow will be: FirstPage.xaml -> SecondPage.xaml -> ThirdPage.xaml in other words, main page…
jake
  • 1,405
  • 3
  • 19
  • 33
1
vote
1 answer

Prevent Start Menu, Camera button from tombstoning WP7 Application

I have a WP7 application that I've disabled the idle capabilities of the phone with such as: PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; PhoneApplicationService.Current.ApplicationIdleDetectionMode = …
Jason N. Gaylord
  • 7,910
  • 15
  • 56
  • 95
1
vote
1 answer

wp7 silverlight canvas displays black screen after tombstoning

I have a screen in my wp7 app with only a canvas, used to display a graph. I handle the page loaded event to draw the graph, by adding lines to the graph children, the lines are stored in a list variable in App.xaml.cs. edit: here is my draw line…
Amr H. Abd Elmajeed
  • 1,521
  • 15
  • 41
1
vote
2 answers

Windows phone 7 silverlight tombstoning

I have read in requirements that when user presses the back button, application must exit. (5.4.2): "Pressing the Back button from the first screen of an application must exit the application". So, i have read in many sites that exitting in…
Alex
  • 11
  • 1
1
vote
2 answers

How do I serialise Lambdas and Event delegates when Tombstoning on the Windows Phone 7?

I've been using the Game State Management sample which has worked so far. I've hit a snag though: when Tombstoning, the screens are serialised; the only trouble is, the MessageBoxScreen has event handlers for Accepted and Cancelled. What's the…
Steve Dunn
  • 21,044
  • 11
  • 62
  • 87
1
vote
2 answers

MVVM-Light and WP7 ViewModel tombstoning isn't working

I've tried following the steps in Joost Van Schaik's article on tombstoning but was unable to get it to work for me. I'm no doubt doing something wrong. In my ViewModel: private string _foobar ="init"; public string testStr { get { …
1
vote
3 answers

How to correctly saving the viewmodel of page to handle tombstoning

I'm building a WP7 app, and I'm now at the point of handling the tombstoning part of it. What I am doing is saving the viewmodel of the page in the Page.State bag when the NavigatedFrom event occurs, and reading it back in the NavigatedTo (with some…
CodeClimber
  • 4,109
  • 4
  • 32
  • 44
1
vote
1 answer

How to handle TombStoning in WP7 ViewModelLocator

When my WP7 app comes back from being Tombstoned, it creates the ViewModelLocator class that I have stored in App.Resources. How do are you suppose to handle this? In my ViewModelLocator constructor there are several ViewModels being created and…
Tyler
  • 1,019
  • 12
  • 27
1
vote
1 answer

Partially completed text boxes and tombstoning in Windows Phone 7

When I use TwoWay data binding to a view model on a page, then from what I have observed, the view model is only updated when the focus leaves the field (eg. a TextBox). This behaviour matches the description in Updating the Data Source. If the…
David Gardiner
  • 16,892
  • 20
  • 80
  • 117
1
vote
1 answer

WP7 Get visible items in listbox

I have a listbox in a WP7 application and I would like to retrieve a list of visible items in the listbox. Actually, I am trying to retrieve the object that is visible so that when my application is tombstoned, I can resume it and write…
ListBoxer
  • 11
  • 2
1
vote
1 answer

How to force a tombstone/crash in a Froyo phone?

How to force a tombstone/crash in a Froyo phone? I need a way to perform a test, forcing a tombstone generation in a Froyo phone. Preferably using adb commands. Does anyone know how to do this? Thanks a lot!