Runtime 8 and Windows Phone 8
-
Upload
damir-dobric -
Category
Technology
-
view
383 -
download
4
description
Transcript of Runtime 8 and Windows Phone 8
![Page 1: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/1.jpg)
DAMIR DOBRIC
Lead Architect DAENET GmbHMs. VTSP for Windows AzureMs. Integration MVPMs. Connected Technology AdvisorBlog: http://developers.deTwitter: https://twitter.com/ddobriceMail: [email protected]
“Runtime 8”
![Page 2: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/2.jpg)
AGENDA
Runtime 8Under the
hubDeployment
EmulatorWP8
Runtime
App ModelCode
Sharing
Mobile Services
Platform Evolution“Runtime
8”
Platform Compatibilit
y
App Model for Cloud
WIN8
WP8
WAZ
![Page 3: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/3.jpg)
Evolution
![Page 4: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/4.jpg)
“METRO”-Style Evolution
System32
Windows NT
DOS
Windows 95
Windows CE/Embedded
System32/CE
Win Mobile
System32/WinRT
WP7
Vista Windows 8WOA/ARM
Windows RT
WP8 Runtime
WP8
X64/x86x86
Win8 Embedded
![Page 6: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/6.jpg)
Demo
P=U*I
List<>.Add()
new Thread().Start()
ThreadPool.RunAsync()
![Page 7: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/7.jpg)
Stubs, no pInvoke!
CLR
RCW
WinRT Object
WinRT
CCW
Managed Object
![Page 8: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/8.jpg)
Stub Samples
Rcw Sample.txt Ccw Sample.txt
![Page 9: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/9.jpg)
o Standard Typeso Windows.*
o Primitive Typeso Byte, Int32, ..o Marshaling required:
o String, Objecto Projected Types
o Windows.Foundation.Urio Windows.Foundation.DateTimeOffseto HRESULT
o Projected Interfaceso IVector<T>,o IMap<T>
o Helperso StorageFolder.OpenStreamForReadAsync(fileName);
New Type System
![Page 10: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/10.jpg)
Demo
WinRT
As Runtime(Store App)
As API(Desktop App)
![Page 11: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/11.jpg)
oTwo optionsoApp Storeo Sided Loading (for Enterprises)oExplicit InstallationoProvisioning
App Deployment
![Page 12: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/12.jpg)
o By Group PolicyIf in Windows® 8 Enterprise or Windows Server® 2012 domainhttp://technet.microsoft.com/en-us/library/hh852635.aspx#SideloadingRequirements
o By Activation KeyIf not in domain the use volume license key.
o If not in domain and no activation key then use AppStore.
Sided Loaded Apps(none appstore deployment)
![Page 13: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/13.jpg)
Deployment
http://technet.microsoft.com/en-us/library/hh852635.aspx
Add Apps Inventory Apps Remove Apps
add-appxpackage C:\app1.appx –DependencyPath C:\winjs.appx
Add-AppxProvisionedPackage -Online -FolderPath C:\Appx
Get-AppxPackage -AllUsers
Get-AppxPackage -Name Package1 -User domain\username
Remove-AppxPackage Package1
![Page 14: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/14.jpg)
Windows Phone 8
EmulatorWP8
Runtime
App ModelCode
Sharing
WP8
![Page 15: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/15.jpg)
oWP7 and WP7.1 Apps run on WP8!oNo general breaking changeso Existing code is emulated in Quirks-Modeo Some API differences
example:XmlSerializerWP8 must have a default constructor.WP7 quirks: It is not necessary to have a default constructor
o Code after Rebuild targets WP8 platform
WP Platform Compatibility
![Page 16: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/16.jpg)
The dream or reality?
![Page 17: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/17.jpg)
o 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.
Upgrade
![Page 18: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/18.jpg)
Demo
Windows Phone 8
Hello World
![Page 19: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/19.jpg)
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 BIOS
http://developers.de/blogs/damir_dobric/archive/2012/10/14/windows8-error-hypervisor-is-not-running.aspx
![Page 20: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/20.jpg)
Resolution
Resolution Aspect ratio Scaled resolution
WVGA 480 × 800 15:9 480 × 800
WXGA 768 × 1280 15:9 480 × 800
720P 720 × 1280 16:9 480 × 853
![Page 21: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/21.jpg)
Windows Phone API
![Page 22: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/22.jpg)
“Runtime 8”
![Page 24: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/24.jpg)
Facts across platforms
![Page 25: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/25.jpg)
Common API-s
DirectX 11.1XAudio2MediaEngineSTLCRTWinSock
Native API
Networking
Sensors
Proximity
Storage
DataSaver/Connection Manager
Location
Touch
Online IdentityVoIP
Keyboard
Launchers & Choosers
In-App Purchase
Sensors
Threading
Base Types/ Windows.Foundation
WinRT API
![Page 26: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/26.jpg)
o 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
New APIs
![Page 27: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/27.jpg)
Common Controls
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj735581(v=vs.105).aspx
![Page 28: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/28.jpg)
Your Apps Your way
![Page 29: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/29.jpg)
Supported Languages
![Page 30: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/30.jpg)
oC# (XAML)oXNAoC++oHTML5
Project Templates
![Page 31: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/31.jpg)
Demo
Windows Phone 8
JavaScript
jQueryWeb App on Phone
http://wpwidgetlibrary.codeplex.com/
![Page 32: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/32.jpg)
oOS 7.1, apps run on a single core, and the scheduler is less aggressive in time-slicing
oOS 8, apps run on multiple cores and the scheduler is more aggressive in time-slicing threads. Raise conditions and concurrency bugs easier to achieve
Threading
![Page 33: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/33.jpg)
oSingle OS 7.1 version which runs on both. No new features are supported. Runs in quirks
oCreate separate copy for 7.1 and 8.0oCreate separate copy with shared files
Platform Targeting
![Page 34: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/34.jpg)
Demo
Windows Phone 8,Windows 8
Code Sharing
Portable Library
Linked Files
Camera Accelerometer
![Page 35: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/35.jpg)
oSocket Listeners (Incoming)Windows.Networking.Sockets
o IPv6oWinsock SupportoProximity API
Network Improvements
![Page 36: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/36.jpg)
In-App Purchasing
Class Member Description
CurrentApp LoadListingInformationByProductIdsAsync(ListingInformation productIds)
CurrentApp LoadListingInformationByKeywordsAsync(ListingInformation 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; }
![Page 37: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/37.jpg)
Demo
Custom Protocol
![Page 38: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/38.jpg)
o Enterprise Enrollment o Company Accounto Symantec Verificationo Corporate Signing Certificate
o Managemento System Centero InTune
o Token Distributiono AETGenerator generates Application Enrollment Token (AET) .aetxo EnterpriseInstall.exe
o Enrolles Tokeno Distributes XAP
o EnterpriseValidation.exeo Periodically sends Device ID, installed apps to MS Server to validate enterprise.
o Enterprise Developer APIo query what apps are installed for enterprise, o start an enterprise app installation o query pending enterprise app installation
Enterprise Device Enrollment
![Page 39: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/39.jpg)
Demo
Background Process
![Page 40: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/40.jpg)
Demo
Speech
![Page 41: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/41.jpg)
Demo
Recognition
![Page 42: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/42.jpg)
PNS Infrastructure
![Page 43: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/43.jpg)
Demo
Windows Phone 8Windows Azure Mobile Services
![Page 44: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/44.jpg)
Where to start?
WP8 MSDN Documentationhttp://msdn.microsoft.com/en-us/library/windowsphone/develop/ff402535(v=vs.105).aspx
WinRT:http://de.slideshare.net/ITCamp/itcamp-2012-raffaele-rialdi-introduction-to-winrt
![Page 45: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/45.jpg)
Recap
Platform Evolution
“Runtime 8”
Platform Compatibilit
y
Emulator WP8 API
App ModelPlatform Targeting
Code SharingMobile
Services
![Page 46: Runtime 8 and Windows Phone 8](https://reader035.fdocuments.in/reader035/viewer/2022062303/5561738dd8b42ade208b49f5/html5/thumbnails/46.jpg)
Differences