04 | State Management Bill Burrows | UW Faculty Member & VB MVP

Slides:



Advertisements
Similar presentations
Periodic and distance based tracking Desired accuracy in meters Single location request Caching and timeout Position source.Net APIs Windows Runtime.
Advertisements

GALVESTON COUNTY, TX P-CARD TRAINING GALVESTON COUNTY.
Part 2: Manage app lifecycle and state (Windows Store apps using C#/VB and XAML) us/library/windows/apps/hh aspx
The Android Activity Lifecycle. Slide 2 Introduction Working with the Android logging system Rotation and multiple layouts Understanding the Android activity.
Compile MS Access Pertemuan 18 Matakuliah: F0712 / Lab MS Access Tahun: 2007.
Process by Dr. Amin Danial Asham. References Operating System Concepts ABRAHAM SILBERSCHATZ, PETER BAER GALVIN, and GREG GAGNE.
Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
RSSql Application Examples There are two RSSql sample applications on this disk: –Application Trigger Sample –Tutorial Sample More overview information.
Met Alert Tool (MAT). Introduction What is MAT? –Met Alert Tool (MAT) monitors and alerts the user to weather conditions exceeding thresholds (for example,
An Introduction to Visual Basic
© 2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice SISP Training Documentation Template.
Python File Handling. In all the programs you have made so far when program is closed all the data is lost, but what if you want to keep the data to use.
The process concept (section 3.1, 3.3 and demos)  Process: An entity capable of requesting and using computer resources (memory, CPU cycles, files, etc).
Integrated Development Environment (IDE)
Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project.
Vocabulary in VB So Far. Assignment: Used to change the value of an object at run time Used to change the value of an object at run time.
Windows 10 UWP MVVM In Depth
Navigating Selection Manager –
Mobile web vs apps compared. Pro's of mobile web Accessible through any browser Doesn't require app download Load page by page Good for SEO Will have.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
CSC 322 Operating Systems Concepts Lecture - 28: by Ahmed Mumtaz Mustehsan Special Thanks To: Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
Chapter 2 Process Management. 2 Objectives After finish this chapter, you will understand: the concept of a process. the process life cycle. process states.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
Workflow Service Host Persistence (Instances) Persistence (Instances) Monitoring Activity Library Receive Send... Management Endpoint Persistence Behavior.
Windows 8: XAML or HTML? Karl Davies-Barrett CEE DPE Tech Lead, Microsoft 
Multithreading vs. Event Driven in Code Development of High Performance Servers.
CH 3 Deadlock When 2 (or more) processes remain blocked forever!
FIRST COURSE Exploring the Basics of Microsoft Windows Vista.
Multiprogramming. Readings r Chapter 2.1 of the textbook.
Introduction to threads
Running a Forms Developer Application
Resource Management IB Computer Science.
Looking at our “Getting Started” application
TechEd /26/2018 3:42 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
PCOLS PCOLS REPORTING.
Administrator Training
Build Windows 10 UWP MVVM Apps with Prism
The Android Activity Lifecycle
Windows Phone Platform Integration Yochay Kiriaty
IOS App Development.
Exploring the Basics of Windows XP
Microsoft Build /9/2018 8:05 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Windows Phone multitasking
Memory Management Activity
Creating Windows Store Apps Using Visual Basic
11/19/ | App Model & Storage © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Tooling and Diagnostics
Exploring the Basics of Windows XP
12/2/ :23 PM APP-410T Real time communication: keep your Metro style app connected whether it is running or suspended Raghu Gatta Principal Development.
CSE 451: Operating Systems Winter 2011 Processes
Windows Runtime App Lifecycle
CSE 451: Operating Systems Winter 2010 Module 4 Processes
2.01 Manage the PowerPoint Environment
Create experiences that span devices
Canvas introduction for students
Activities and Intents
Scripts In Matlab.
Michael Palermo Jeremy Foster
Process State Model -Compiled by Sheetal for CSIT
Shelly Cashman: Microsoft Windows 10
Process and Thread State Diagrams
CS703 – Advanced Operating Systems
Process and Thread State Diagrams
Ch07 生命週期(Life Cycle).
Service Access Management Tool Notification Preferences
Canvas introduction for students
Presentation transcript:

04 | State Management Bill Burrows | UW Faculty Member & VB MVP Anthony D. Green | Program Manager, Microsoft

Module Overview Application Life Cycle Saving/Restoring State AW State Management

Application Life Cycle

Application Lifecycle Running Not Running Suspended Suspending Resuming Activated

Application Lifecycle Running Not Running Suspended Suspending Resuming Activated Suspended When User switches away from it Windows enters low-power state May stay in memory Resumes very fast Windows manages – no code required (unless page is discarded from navigation path)

Application Lifecycle Running Not Running Suspended Suspending Resuming Activated Terminated (not running) When Application is suspended (and) Windows needs memory (or) Windows wants to save power Removed from memory Must be re-activated

Application Lifecycle Big Deal! Windows notifies your app when it suspends it, but doesn't provide additional notification when it terminates the app. That means your app must handle the suspended event and use it to save its state and release its exclusive resources and file handles immediately.

Application Lifecycle Running Not Running Suspended Suspending Resuming Activated Use the SuspensionManager

Suspending – Time Limited About 5 seconds! Save changes in state frequently while app is running to reduce activity when suspension takes place.

Types of States Application State: Deals with the entire application. An example is preferences. Page State: Deals with a specific page. Includes things like user-entered text, selected element in a list, etc.

Saving/Restoring State

Managing State

AW State Management

AW State Management

Module 4 Review Application Life Cycle Saving/Restoring State AW State Management