/
Yochay Kiriaty Yochay Kiriaty

Yochay Kiriaty - PowerPoint Presentation

phoebe-click
phoebe-click . @phoebe-click
Follow
374 views
Uploaded On 2017-11-07

Yochay Kiriaty - PPT Presentation

Microsoft yochayk httpwindowsteamblogcom yochaykmicrosoftcom Windows Phone Platform Integration httplearningwindowsphone com Agenda Love and hate tombstoning What is tombstone and why you should care ID: 603282

answer application user tombstone application answer tombstone user app event state lifecycle page fired deactivated running start onnavigatingfrom users

Share:

Link:

Embed:

Download Presentation from below link

Download Presentation The PPT/PDF document "Yochay Kiriaty" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Slide1
Slide2

Yochay KiriatyMicrosoft

@

yochayk

http://windowsteamblog.com

/

yochayk@microsoft.com

Windows Phone

Platform IntegrationSlide3

http://learningwindowsphone.comSlide4

Agenda

Love and hate tombstoning

What is tombstone and why you should care?

The basic

Advance Choosers and Launchers

and Tombstone What, why, and how

TombstoningSlide5

Basic Application LifecycleSlide6

Tombstone Application lifecycle

The application’s process

is

killed (in most cases)*

Save state for later use

Load state to continue where she left off

User is back where he` left off

Press

Start

Open toast

Lock screenSlide7

The Windows Phone execution model is designed to provide end users with a fast, responsive experience Only one 3rd-party application can run in the foreground System terminates your application when user navigates awayApp is

Tombstoned when user “navigates” awaySystem saves some state information then terminates the app

When user navigates back to the application, system restarts it and passes state information back to the clientDeveloper must write code to respond to lifecycle events

Save and restore state Maintain illusion that the application is running continuously

7

App Management Slide8

Application_LaunchingWhen the application is launchingNot fired when the application is reactivatedApplication_ActivatedWhen the application is activated

Not fired when the application is first launchedApplication_Deactivated

When the application is deactivatedNot fired when the application is closingApplication_Closing

When the application is closingNot fired when the application is

deactivated8

Lifecycle EventsSlide9

Application Lifecycle 19

Start

Launching event

App Running

User ‘Backs’ past first page

Closing event

User invokes chooser or launcher, or presses Start to launch another app

Deactivated eventSlide10

Application Lifecycle 210

Restored app instance

App Running

User presses Start and launches your application

User completes chooser or launcher. Or user navigates back from other app to reach your app

Deactivated event

Activated event

New app instance

Launching event

App RunningSlide11

Application Lifecycle

DemoSlide12

Tombstone and Controls

PivotUse SelectedIndex

Must used in the page (control) loaded eventPano

DefaultItemBut…. Scrollbar

VerticalOffsetMap ControlZoom levels and other transforms Picture

viewer or any other controlmanipulation.Slide13

Tombstone & Controls

DemoSlide14

Tombstone and Resources

Camera, Video, MicRelease on Page

OnNavigatingFrom (or earlier)LocationDeactivated (ideal on

OnNavigatingFrom)Remember warm-up time

SensorsStop on Page OnNavigatingFromSlide15

Advance Topics

Application’s load timeLunching , Existing, Deceived, Activated: all in just 10 sec

Defer loading and use background threadSerlilization frameworks and timesMake sure you read

thisOptimize save state Per page

Global (MVVM)Slide16

Launchers and Chooser

Common tasks used by usersCamera, SMS, Contacts, Marketplace, etc…Tombstone the application

Some have relaxed tombstoning policy

PhotoChooserTaskCameraCaptureTaskMediaPlayerLauncher

EmailAddressChooserTaskPhoneNumberChooserTaskGame Invite – Used in XNA GamesGamer Card – Used in XNA GamesSlide17

Launchers, Choosers And Tombstone

DemoSlide18

Summary

Tombstone is part of your Windows Phone application – deal with it!Understand method call orderDo not rely on classes

or page constructorsCheck global objects before using

Defer work as much as possibleBe smart when saving your stateBe aware of startup and shutdown times

Delight your users by working smart with controls, UI, and resourcesSlide19

Thank You for attending today’s

Tech.Days

Online Conference.

Today’s Online Conference will be recorded. It will be made available on-demand very soon.

Your Feedback Matters! Please complete the online evaluation form which will be emailed to you.

FeedbackSlide20
Slide21

Question to go here

Q&A

This will be the answer. This will be the answer. This will be the answer. This will be the answer. This will be the answer. This will be the answer. This will be the answer.

Question to go here

This will be the answer. This will be the answer. This will be the answer. This will be the answer. This will be the answer. This will be the answer. This will be the answer.

Related Contents


Next Show more