tombstoning

WP7 Tombstoning and Querystring

时光毁灭记忆、已成空白 提交于 2019-12-24 20:23:56
问题 I am running very basic xml reader and I pass some data to the details page by using: private void HaberlerListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (e.AddedItems.Count > 0) { NavigationService.Navigate(new Uri("/News.xaml", UriKind.Relative)); FrameworkElement root = Application.Current.RootVisual as FrameworkElement; root.DataContext = (HaberItem)e.AddedItems[0]; ((ListBox)sender).SelectedIndex = -1; } } For a week I am trying to read and understand how to

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

杀马特。学长 韩版系。学妹 提交于 2019-12-24 09:57:02
问题 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 -> page with list of objects -> page displaying one object in detail from previous page when i go from FirstPage.xaml to SecondPage.xaml, i have to do a database query to get a List in SecondPage.xaml. i then need to go to a ThirdPage.xaml from

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

你说的曾经没有我的故事 提交于 2019-12-18 10:20:36
问题 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 4cf7c73c 4cf7c720 836c44f0 libmyproject.so 4cf7c724 82f3a414 libmyproject.so 4cf7c728 4cf7c768 4cf7c72c 0000008d 4cf7c730 007ea0a8 [heap] 4cf7c734 00270100 [heap] 4cf7c738 e3a07077 4cf7c73c ef900077 4cf7c740 00000000 4cf7c744 4cf7c774 4cf7c748 836c44f0 libmyproject.so

WP7 - Resume from the page I assigned

限于喜欢 提交于 2019-12-11 11:51:19
问题 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 application from the MainPage (not the detailspage) when they hit back button. Kind regards. 回答1: I'm not sure if this is possible via a built-in code path, but you can detect when the phone is activating from tombstone using the

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

两盒软妹~` 提交于 2019-12-11 05:29:30
问题 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 need to restore or instantiate/query new data, and the solution works. however, this approach seems to be ad-hoc and/or page-specific only. the code doesn't save the states of the pages preceding it. it's my understanding that when the app is

how should a metro app cache images for tombstoning (and should it)?

两盒软妹~` 提交于 2019-12-10 12:13:57
问题 I have a c# metro app that downloads a collection of objects that have a property for a uri. This collection is bound to a ListBox with an Image source bound, this works fine. When the app is tombstoning, I want to preserve all app state including the collection and the images that have been downloaded from the internet. Covering the case, the users actions result in the collection being downloaded and displaying correctly they switch away to another app and the my app is terminated. The user

Isolated Storage security exception on windows phone

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 10:47:09
问题 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 onNavigatedFrom protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e) { settings.Add("list",listBox1.ItemsSource); settings.Save(); } When I hit the start button on the emulator I get a security exception: System.Security

WP7 how to store LiveConnectSession during TombStoning?

筅森魡賤 提交于 2019-12-06 06:48:15
问题 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 tombstones, I need a way to save the LiveConnectSession. IsolatedStorageSettings.ApplicationSettings does not work, probably because the LiveConnectSession is not serializable (it shows some InvalidDataContractException in the debug output). So how do

Isolated Storage security exception on windows phone

廉价感情. 提交于 2019-12-06 05:11:33
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 onNavigatedFrom protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e) { settings.Add("list",listBox1.ItemsSource); settings.Save(); } When I hit the start button on the emulator I get a security exception: System.Security.SecurityException was unhandled Message=SecurityException My listbox is binded to data coming from a xml. I´m

When to save the state of the application for tombstoning?

淺唱寂寞╮ 提交于 2019-12-02 00:36:02
问题 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 terminated and reactivated during the tombstoning process In the application deactivated event, go through all the pages that are in the navigation stack and save their state (their viewmodel) and then re-inject it in the application activated event.