Windows 8 and windows phone 8 developer story anders bratland

719 views
619 views

Published on

Windows 8 and windows phone 8 developer story by Anders Bratland. Keynote speech at NETwork 2012 http://network-ua.com/

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
719
On SlideShare
0
From Embeds
0
Number of Embeds
16
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • PLM Basic Suspend
  • Search Sharing Play To Settings App to App Picking
  • File Picker
  • Gör en sökning I Weather
  • HTML5SearchExtension SDK SampleXAML
  • HTML5/XAMLOpen Photos, Select Photo, Charms Bar, Email, Share, Send
  • Demonstrate basic task switching.. Launch an app… Switch to another app… Show task manager.. Make sure you have selected View -> Status Values - > show Suspended Status in task manager.. Wait for it to suspend.. Explain to them the system did all the work..
  • The system terminates the apps.. [users can do it too via task manager].. There is no event fired during termination… you should save all your stuff by “suspending” …
  • In Windows 8, you need to understand how you are activated. Some activations (e.g. Share) are not launching the full app.
  • Note that search is different.. You override
  • Windows 8 and windows phone 8 developer story anders bratland

    1. 1. Allows your app to always resume no matter where it’slaunched from:If your app is in the back stack then we will resume itIf it’s not then we will launch a new instance
    2. 2. Not enabled by default. Why?
    3. 3. demo
    4. 4. Windows 8 Windows Store Apps Desktop App View XAML HTML / CSS Controller C C# Model JavaScript HTML C C++ VB JavaScrip t C++ WinRT APIs System Services Communication Devices & DirectX & Media & Data Printing Application Model Internet Explorer Win32 Kernel Windows Kernel Services
    5. 5. demo
    6. 6. demo
    7. 7. demo
    8. 8. demo
    9. 9. demo
    10. 10. Apps do not get notified when they are getting terminated
    11. 11. //Register for the Suspending event and call Current_Suspending when received//Handle the suspending event and save the current user session using WinJS sessionState//We are getting suspended}//Register for the Resuming event and call resumingHandler when received {//We are getting resumed, in general do nothing}
    12. 12. protected async override void OnLaunched(LaunchActivatedEventArgs args){ if (args.PreviousExecutionState == ApplicationExecutionState.Terminated) { // Do an asynchronous restore await SuspensionManager.RestoreAsync(); } if (args.Kind == ActivationKind.Launch) { if ( !string.IsNullOrEmpty ( args.Arguments ) { // handle arguments } } else if ( args.Kind == ActivationKind.ShareTarget ) { }// …}

    ×