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

How to get longer stack dump (tombstone) from android?

As I have noticed, logcat returns always 34 lines of crashlog, like this: 4cf7c700 401c0000 4cf7c704 48463ff0 4cf7c708 44d11f7c 4cf7c70c afd0cd89 4cf7c710 00000000 4cf7c714 82ab29dc libmyproject.so 4cf7c718 00000000 4cf7c71c …
noisy
  • 6,495
  • 10
  • 50
  • 92
10
votes
1 answer

WP 7.5 - How can I test tombstoning?

In WP 7.0 it was easy to test the tombstone system - I'd hit the camera button then press back to get a tombstone/resume. In WP 7.5 the app goes dormant for awhile, but appears to tombstone at an indeterminate time. Is it possible to force this…
James Cadd
  • 12,136
  • 30
  • 85
  • 134
6
votes
2 answers

Navigating to a details page - shared view model or navigation query string?

When navigating from a list page to a details page, there are two high level ways of passing the selection data between the pages: sharing a view model instance and passing an identifier in the querystring of the navigation Uri. Which should I be…
Richard Szalay
  • 83,269
  • 19
  • 178
  • 237
5
votes
2 answers

WP7: Edit Screenshot While App is Backgrounding (Mango)

I have an app that I have been developing that can display sensitive user data. When the user backgrounds the app, the OS appears to take a screenshot of the app as it was running, and displays it so when the user returns, their state is restored.…
William Melani
  • 4,270
  • 1
  • 21
  • 44
5
votes
2 answers

Restore Scroll Position in LongListSelector after tombstone

I'm trying to work with the LongListSelector control from the WP7 Silverlight Toolkit. It's taken a bit of work, but I finally have it working with my app. Unfortunately, I am having some trouble properly handling the tombstoning process. When the…
CactusPCJack
  • 459
  • 5
  • 18
5
votes
2 answers

Handling Tombstoning and Back key properly for performance reasons?

Is there a best practice for handling tombstoning and back key properly? As it is stated in the MSDN docu you should save transient data in the OnNavigatedFrom method. Ok, so the code for saving states when tombstoning is clear. But now if you press…
Buju
  • 1,546
  • 3
  • 16
  • 27
5
votes
1 answer

Windows Phone 7: Tombstoning with URIs?

I'm building a wp7 app in Silverlight. All of my app's state is stored in NavigationContext.QueryString. If this could be saved on application deactivation, and that page navigated to on application reactivation, that would take care of my…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
5
votes
1 answer

Tombstoning in Caliburn Micro

I have MainPageViewModel with Items (ObservableCollection). On this page I also have a button, that add new items to Items. public class MainPageViewModel : Screen { private DateTime StartActivity = DateTime.MinValue; public…
feeeper
  • 2,865
  • 4
  • 28
  • 42
4
votes
1 answer

Should transient state always be loaded when a page is navigated to, or just when resuming from a tombstoned state?

I'm reading through Windows Phone 7.5 Unleashed, and there is a lot of code that looks like this (in the code-behind for a page): bool loaded; protected override void OnNavigatedTo(NavigationEventArgs e) { if (!loaded) { DataContext…
Matthew
  • 28,056
  • 26
  • 104
  • 170
3
votes
1 answer

WP7 controls: When to set VisualState after recovering from Tombstone?

My question is simple: WHEN (on what event?) can I be sure that a control has fully loaded and has its states and templates also? Why am I asking: I'm trying to restore the state of my own WP7 control after recovering from tombstone. This control…
Tenshiko
  • 1,450
  • 3
  • 17
  • 33
3
votes
4 answers

When to save the state of the application for tombstoning?

I was wondering when is more appropriate to save the view model of the single pages. I see two possibilities: Save the state of each page (it's viewmodel) everytime you navagitefrom it so that it is already saved if the application happens to be…
CodeClimber
  • 4,109
  • 4
  • 32
  • 44
3
votes
1 answer

Get screen height in WP8 Silverlight app on page initialization after tombstoning

For some reason, I need to get the device screen height in the page constructor and use it to set the sizes of other page items. I do it like this: double screenHeight = Application.Current.RootVisual.RenderSize.Height; However, I've recently…
3
votes
1 answer

WP7 how to store LiveConnectSession during TombStoning?

I'm using the windows live sign in strategy of the PhotoSkyOnTheGo example provided by MS. So when my app starts, it shows a windows live sign in page. During app runtime I remember the LiveConnectSession to connect to SkyDrive. Now when the app…
Sam
  • 28,421
  • 49
  • 167
  • 247
2
votes
3 answers

Should I launch fresh instance or restore last when app is deactivated and started again through app list?

I read a lot about application states, tombstoning and recommended practises but I am still confused Here is my scenario User launches app through application icon. User then moves to next page. User Click on Windows button. User launches app…
Haris Hasan
  • 29,856
  • 10
  • 92
  • 122
2
votes
1 answer

RootVisual is null when returning from Tombstoning?

Hi I just found out that my application was crashing when returning from tombstoning. I was able to target the problem here inside the constructor of my page: RadPhoneApplicationFrame frame = App.Current.RootVisual as…
Edward
  • 7,346
  • 8
  • 62
  • 123
1
2 3 4 5 6 7