“Runtime 8”DAMIR DOBRICLead Architect DAENET GmbHMs. VTSP for Windows AzureMs. Integration MVPMs. Connected Technology Adv...
AGENDA         Platform                       Platform        Evolution                     Compatibility       “Runtime 8...
Evolution
“METRO”-Style Evolution                                                      Windows RT             Windows NT          Vi...
Why new Runtime?
Demo      P=U*I    List<>.Add() new Thread().Start()ThreadPool.RunAsync()
Stubs, no pInvoke! CLR          WinRT RCW          CCWWinRT        ManagedObject        Object
Stub Samples
New Type Systemo Standard Types  o Windows.*o Primitive Types  o Byte, Int32, ..  o Marshaling required:      o String, Ob...
Demo           As Runtime           (Store App)WinRT              As API          (Desktop App)
App Deploymento Two options o App Store o Sided Loading (for Enterprises)   oExplicit Installation   oProvisioning
Sided Loaded Apps(none appstore deployment)o By Group Policy  If in Windows® 8 Enterprise or Windows  Server® 2012 domain ...
DeploymentAdd AppsInventory AppsRemove Appsadd-appxpackage C:app1.appx –DependencyPath C:winjs.appxAdd-AppxProvisionedPack...
Windows Phone 8      Emulator    WP8 RuntimeWP8      App Model   Code Sharing
WP Platform               Compatibilityo WP7 and WP7.1 Apps run on WP8!o No general breaking changeso Existing code is emu...
The dream or reality?
Upgradeo In Solution Explorer, use the Upgrade  to Windows Phone 8.0 command.o In the project designer, change the  Target...
DemoWindows Phone 8Hello World
Emulator        • Hardware-assisted virtualization supported and          enabled in the BIOS        • Second Level Addres...
Resolution                                   Scaled       Resolution   Aspect ratio                                   reso...
Windows Phone API
“Runtime 8”
“Runtime 8”
Facts across platforms
Common API-sNative API      WinRT API                 NetworkingDirectX 11.1                 SensorsXAudio2          Proxi...
New APIso   Bluetotho   Advanced Captureo   Lence controlo   Photo and Media enhencmetso   LongListSelectoro   Subset of W...
Common Controlshttp://msdn.microsoft.com/en-us/library/windowsphone/develop/jj735581(v=vs.105).aspx
Your Apps Your way
Supported Languages
Project Templateso C# (XAML)o XNAo C++o HTML5
Demo             Windows Phone 8            JavaScript                         Web App          jQuery                    ...
Threadingo OS 7.1, apps run on a single core, and  the scheduler is less aggressive in time-  slicingo OS 8, apps run on m...
Platform Targetingo Single OS 7.1 version which runs on  both. No new features are supported.  Runs in quirkso Create sepa...
DemoWindows Phone 8,Windows 8 Code Sharing  Portable              Linked Files   Library  Camera      Accelerometer
Network Improvementso Socket Listeners (Incoming) Windows.Networking.Socketso IPv6o Winsock Supporto Proximity API
In-App PurchasingClass            Member                                                      Description                 ...
DemoCustom Protocol
Enterprise Device                 Enrollmento Enterprise Enrollment   o Company Account   o Symantec Verification   o Corp...
DemoBackground Process
Demo  Speech
Demo Recognition
PNS Infrastructure
Demo     Windows Phone 8Windows Azure Mobile Services
Where to start?WP8 MSDN Documentationhttp://msdn.microsoft.com/en-us/library/windowsphone/develop/ff402535(v=vs.105).aspxW...
Recap Platform                 Platform Evolution               Compatibility“Runtime 8” Emulator        WP8 API          ...
Differences
Upcoming SlideShare
Loading in …5
×

Runtime 8 and Windows Phone 8

713 views

Published on

Runtime 8 for Windows Phone 8 by Damir Dobric

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

  • Be the first to like this

No Downloads
Views
Total views
713
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Platforn, Clr and App compatibility
  • Ecosystem Overview There are some general steps that enterprises must follow to establish an enterprise account, enroll devices and distribute apps to their enrolled devices. The following list describes these. An enterprise establishes an account on the developer site and is verified by SymantecAn enterprise receives a certificate, which they use to create an enrollment token to enroll devices in their enterprise.The enterprise can use the same certificate to sign apps and deploy them to their app portal.Users within the enterprise install the enrollment token on their phone, either through an OMA DM system or manually.Once a phone is enrolled in the enterprise, the employee can visit an enterprise specific app portal and download and install apps.Enterprises can query a phone for the enterprise-specific apps installed on the device.Enterprise Enrollment Enterprises will be required to establish a company account on Windows Phone Dev Center. As a part of establishing the account the enterprise will undergo a verification process with Symantec. Once an enterprise account has been established, a certificate and tools are provided to enterprises to enable them to sign apps and complete other tasks specific to enterprise app distribution. Enterprise Enrollment Token Distribution An enterprise can either manage Windows Phones using an OMA-DM management system such as System Center or InTune or they can use a set of tools provided by Microsoft to manage their phones manually. Following is a list of some of these tools and their purpose. AETGenerator Generates an Application Enrollment Token (AET) for distribution to a phone.EnterpriseInstall.exe Provides enterprise token enrollment and distribution of one enterprise XAP. This typically application launches when a user clicks a link or attachment that contains the application enrollment token (.AETX) file.EnterpriseValidation.exe Enables enterprise-enrolled phone to periodically send a message to a Microsoft server to report device ID, enterprise apps installed on the phone and the validity of the enterprise.Enterprise Developer APIs
  • Runtime 8 and Windows Phone 8

    1. 1. “Runtime 8”DAMIR DOBRICLead Architect DAENET GmbHMs. VTSP for Windows AzureMs. Integration MVPMs. Connected Technology AdvisorBlog: http://developers.deTwitter: https://twitter.com/ddobriceMail: damir.dobric@daenet.com
    2. 2. AGENDA Platform Platform Evolution Compatibility “Runtime 8”WIN8 Runtime 8 Under the Deployment hub Emulator WP8 RuntimeWP8 App Model Code Sharing App Model MobileWAZ for Cloud Services
    3. 3. Evolution
    4. 4. “METRO”-Style Evolution Windows RT Windows NT Vista Windows 8 WOA/ARM System32 System32/ WinRT x86 X64/x86Windows 95 DOS Windows CE/ Win Mobile WP7 WP8 Embedded System32/CE WP8 Runtime Win8 Embedded
    5. 5. Why new Runtime?
    6. 6. Demo P=U*I List<>.Add() new Thread().Start()ThreadPool.RunAsync()
    7. 7. Stubs, no pInvoke! CLR WinRT RCW CCWWinRT ManagedObject Object
    8. 8. Stub Samples
    9. 9. New Type Systemo Standard Types o Windows.*o Primitive Types o Byte, Int32, .. o Marshaling required: o String, Objecto Projected Types o Windows.Foundation.Uri o Windows.Foundation.DateTimeOffset o HRESULTo Projected Interfaces o IVector<T>, o IMap<T>o Helpers o StorageFolder.OpenStreamForReadAsync(fileName);
    10. 10. Demo As Runtime (Store App)WinRT As API (Desktop App)
    11. 11. App Deploymento Two options o App Store o Sided Loading (for Enterprises) oExplicit Installation oProvisioning
    12. 12. Sided Loaded Apps(none appstore deployment)o By Group Policy If in Windows® 8 Enterprise or Windows Server® 2012 domain http://technet.microsoft.com/en-us/library/hh852635.aspx#SideloadingRequirementso By Activation Key If not in domain the use volume license key.o If not in domain and no activation key then use AppStore. 
    13. 13. DeploymentAdd AppsInventory AppsRemove Appsadd-appxpackage C:app1.appx –DependencyPath C:winjs.appxAdd-AppxProvisionedPackage -Online -FolderPath C:AppxGet-AppxPackage -AllUsersGet-AppxPackage -Name Package1 -User domainusernameRemove-AppxPackage Package1http://technet.microsoft.com/en-us/library/hh852635.aspx
    14. 14. Windows Phone 8 Emulator WP8 RuntimeWP8 App Model Code Sharing
    15. 15. WP Platform Compatibilityo WP7 and WP7.1 Apps run on WP8!o No general breaking changeso Existing code is emulated in Quirks- Modeo Some API differences example: XmlSerializer WP8 must have a default constructor. WP7 quirks: It is not necessary to have a default constructoro Code after Rebuild targets WP8 platform
    16. 16. The dream or reality?
    17. 17. Upgradeo In Solution Explorer, use the Upgrade to Windows Phone 8.0 command.o In the project designer, change the Target Windows Phone OS Version value to Windows Phone OS 8.0.
    18. 18. DemoWindows Phone 8Hello World
    19. 19. Emulator • Hardware-assisted virtualization supported and enabled in the BIOS • Second Level Address Translation (SLAT) supported by the BIOS • Hardware-based Data Execution Prevention (DEP) supported and enabled in the BIOShttp://developers.de/blogs/damir_dobric/archive/2012/10/14/windows8-error-hypervisor-is-not-running.aspx
    20. 20. Resolution Scaled Resolution Aspect ratio resolutionWVGA 480 × 800 15:9 480 × 800WXGA 768 × 1280 15:9 480 × 800720P 720 × 1280 16:9 480 × 853
    21. 21. Windows Phone API
    22. 22. “Runtime 8”
    23. 23. “Runtime 8”
    24. 24. Facts across platforms
    25. 25. Common API-sNative API WinRT API NetworkingDirectX 11.1 SensorsXAudio2 Proximity StorageMediaEngine DataSaver/Connection ManagerSTL Location TouchCRT Online IdentityWinSock VoIP Keyboard Launchers & Choosers In-App Purchase Sensors Threading Base Types/ Windows.Foundation
    26. 26. New APIso Bluetotho Advanced Captureo Lence controlo Photo and Media enhencmetso LongListSelectoro Subset of WinRT storage APIo Data Sense APIo DirectX and native audio and mediao File and protocol associationso In-App purchasingo Location tracking in Backgroundo App as Lock Screeno VoIP
    27. 27. Common Controlshttp://msdn.microsoft.com/en-us/library/windowsphone/develop/jj735581(v=vs.105).aspx
    28. 28. Your Apps Your way
    29. 29. Supported Languages
    30. 30. Project Templateso C# (XAML)o XNAo C++o HTML5
    31. 31. Demo Windows Phone 8 JavaScript Web App jQuery on Phonehttp://wpwidgetlibrary.codeplex.com/
    32. 32. Threadingo OS 7.1, apps run on a single core, and the scheduler is less aggressive in time- slicingo OS 8, apps run on multiple cores and the scheduler is more aggressive in time- slicing threads. Raise conditions and concurrency bugs easier to achieve 
    33. 33. Platform Targetingo Single OS 7.1 version which runs on both. No new features are supported. Runs in quirkso Create separate copy for 7.1 and 8.0o Create separate copy with shared files
    34. 34. DemoWindows Phone 8,Windows 8 Code Sharing Portable Linked Files Library Camera Accelerometer
    35. 35. Network Improvementso Socket Listeners (Incoming) Windows.Networking.Socketso IPv6o Winsock Supporto Proximity API
    36. 36. In-App PurchasingClass Member Description LoadListingInformationByProductIdsAsync(ListingInformatioCurrentApp n productIds) LoadListingInformationByKeywordsAsync(ListingInformationCurrentApp keywords)CurrentApp void ReportProductFulfillment(string productId)ProductLicense bool IsConsumable { get; }ProductListing string Description { get; }ProductListing IEnumerable<string> Keywords {get;}ProductListing ProductType ProductType {get;}ProductListing string Tag {get;}ProductListing Uri ImageUri { get; }
    37. 37. DemoCustom Protocol
    38. 38. Enterprise Device Enrollmento Enterprise Enrollment o Company Account o Symantec Verification o Corporate Signing Certificateo Management o System Center o InTuneo Token Distribution o AETGenerator generates Application Enrollment Token (AET) .aetx o EnterpriseInstall.exe o Enrolles Token o Distributes XAPo EnterpriseValidation.exe o Periodically sends Device ID, installed apps to MS Server to validate enterprise.o Enterprise Developer API o query what apps are installed for enterprise, o start an enterprise app installation o query pending enterprise app installation
    39. 39. DemoBackground Process
    40. 40. Demo Speech
    41. 41. Demo Recognition
    42. 42. PNS Infrastructure
    43. 43. Demo Windows Phone 8Windows Azure Mobile Services
    44. 44. Where to start?WP8 MSDN Documentationhttp://msdn.microsoft.com/en-us/library/windowsphone/develop/ff402535(v=vs.105).aspxWinRT:http://de.slideshare.net/ITCamp/itcamp-2012-raffaele-rialdi-introduction-to-winrt
    45. 45. Recap Platform Platform Evolution Compatibility“Runtime 8” Emulator WP8 API PlatformApp Model Targeting MobileCode Sharing Services
    46. 46. Differences

    ×