Post on 24-May-2015
description
transcript
Nick Randolph
Introducing the Windows Phone 8.1 App Development Platform
Windows Phone 8.1
29th April 2014
Sydney Mobile .NET Developers
2
Welcome to Windows Phone 8.1
3
Start screen: Make the Live Tiles Yours
Now 3 column start screen available on *all* phones
Customize your Start background with a favourite picture or one of the supplied options
4
Cortana: Your PERSONAL Digital Assistant
Interact with CORTANA through speech or type
CORTANA learns about you and your interestsEnables CORTANA to be proactive and helpful throughout the day
5
Making the most engaging platform better
Many New Features for Users Action center to quick launch settings and view
notifications New Skype app integrated with Phone dialer New Calendar app with new Week view Fast typing with new Word Flow keyboard Buy app once: use on PC and on Phone App data can roam among devices Start screen backup and restore App data backup Faster app updates Remote viewing of Phone screen Install apps to SD card
6
2014: Windows Phone 8.1 Hardware
Affordability Decrease HW cost floor (support 8x26, Qualcomm Reference Design)
Dual-SIM support
Apps to help you get more out of your data plan: DataSense 2.0, Wi-Fi Sense, Storage
Sense, Battery Sense
8x26
7
How do I get Windows Phone 8.1 on my device?
8
Windows Phone 8.1 Preview for DevelopersPreview for DevelopersInstalls OS updates on your deviceDoes not install OEM firmware updates
When the ‘proper’ update is released by your MO/OEM, you will get that update as normal
9
Windows Phone 8.1 Developer Platform
10
Bringing one Windows to developersWindows 8.1 provides developers with a shared platform that renders the right app experience for the right form-factor
Apps come to life on Windows• Live tile improvements• Action Center for smart notifications• Background execution + triggers• Bluetooth-LE support for wearables +
beacons• Internet Explorer 11 improvements
Designed once; engaging
everywhere• Converged developer platform• Converged app model• Shared app identities + entitlement• Unified push services (via WNS)
11
Platform convergence is a journey…Windows Phone 7.5 Windows Phone 8.0 Windows Phone
8.1Convergence Begins with IE
• WP 7.5 shipped with IE9
• Same rendering engine as Windows
• Same JavaScript engine as Windows
Converged Core (NT kernel)
• Common kernel & file system
• Kernel mode driver framework
• Secure boot & storage encryption (BitLocker)
• Core networking stack
Developer Platform
• Partial API convergence (focus on sensors & IAP)
• Native Code (C++) and DirectX
• IE10
Converging the Dev Platform
• More skillset reuse
• More code reuse
• More seamless app experiences
Aligning the Stores
• Shared dev registration
• Shared entitlement
Common Core Platform
• Proximity & Location frameworks
• Security & identity
• Task scheduler
12
API convergence across the Windows platform
CommonWinRT APIs
Phone-specificWinRT APIs
Windows-specificWinRT APIs
The Windows Runtime (WinRT) is the shared runtime and API space used by store apps across the Windows platform (phone and client)
Dramatic convergence in 8.1• Goal is 100% convergence for dev scenarios• In 8.0, we had ~30% API convergence• With 8.1, we move well past 90%+ convergence
13
Windows Developer Platform in 8.1
Windows Runtime API Set
Graphics Audio Media
Networking File System Input
Commerce
Sensors
.NET CLRWindows Runtime (WinRT)
DirectX(C++)
Windows PhoneSilverlight(C# | VB)
Windows XAML
(C# | VB | C++)
WinJS(HTML + JS)
App Model Services
Navigation
Packaging
Contracts
Background
Store(s)
Push
Roaming
Windows Kernel
App Data Backup
Legend
Windows Phone Only
Windows OnlyWindows + Windows Phone
14
Programming Models for Windows Phone 8.1
DirectX/Direct3D
C++
WinRT
Gaming
WinRT
Store Apps with HTML
JavaScript
WinRT
HTML XAML
Windows Phone Store Apps with
XAML
C#/VB or C++
WinRT
Windows Silverlight 8.1 XAML
C#/VB
WinRT
.NET BCL .NET BCL
* Apps written for Windows Phone 7.x/8.0 all run on Windows Phone 8.1
…others
XAML + Web-
Browser control hybrid
Web apps
XAML +HTML
.NET BCL
Building a Universal Windows Phone & Windows Appdemo
16
What’s new for developers in Windows Phone 8.1A summary of the stand-out features for developers
17
Developers can create a single app that targets Windows Phone and Windows
• One Visual Studio ‘Universal app’ project template for your app
• Shared dev and test tooling for both platforms
Converged Windows XAML Apps
18
Developers can use their HTML/CSS and JavaScript skills to create native apps that run on Windows Phone, similar to Windows
• Not covered in this Jump Start
Windows Phone Store app using JavaScript & HTML
19
Shared virtual layout canvasProvides a common layout coordinate system that extends along the x and y axis into infinity, allowing you to scale up
Common canvas for Screen Diversity
10” tablet
7” tablet
6”
5”
4.5”
Infinite virtual canvas
166 Logical DPI
20
Converged Controls
what’s it really mean?
80% exact same XAML 20% custom
Common SignatureOptimized
DatePicker
TimePickerCommandBarAppBar
Button
CheckBox
RadioButton
ProgressBar
Slider
ToggleSwitch Hub
PivotListViewGridView
21
Controls for tailoring UI to each platform
On Windows Phone 8.1 … and on Windows 8.1
22
Multitasking: Background Tasks and Triggers
Task
TimeTriggerPUSH
Notification
LocationTrigger
PushNotificationTrigger
MaintenanceTrigger
InternetAvailable NetworkStateChange
TimeZoneChange
23
Shared Tiles and Notification Services
Windows Notification Service
(WNS)• Shared push service for Windows
+ Phone• Improved queuing to limit lost
notifications due to intermittent
network connectivity
Tile templates + toasts• Shared tile templates (more!)• Periodic tile updates• Toasts
24
Action Center• Central location to surface
missed notifications• Apps can intelligently
manage notifications (silently add, update, and delete notifications)
Action Center
App Data Model, Data Roaming and Data Backup
LocalPrimary local storeCan be backed up to users’ OneDrive
RoamingData roamed cross-deviceLimited to 100kb
TempTemporary storageCleaned up in low storage condition
Device B
WP 8.1 – PFN 12345
Roaming
LocalLocalCache
Temp
Device A
WP 8.1 App
Roaming
LocalLocalCache
Temp
Roaming
Backup [Device A]
26
Share Contract
27
Maps and Geofencing
28
Media, Media Editing and Background Audio
Video Editing(Phone only – not available on Windows 8.1)
Background Audio & Streaming Media
MediaFoundation Access
Screen Recorder: Record while you Play
Anna beats a level, with top score! The app asks her if she wants to share this with her friends? She says – “yes please!”
Congratulations! Shall we share this?
Share on:
Anna is playing her favorite game. The level is almost over, and Anna could break her record. The application starts recording the screen.
The application uploads the MP4 file, which was automatically transcoded to a VGA resolution for quick uploading, to a website for sharing.
* Screen recording available on Windows Phone only
30
Bluetooth LEHeart rate monitors and other sensorsProximity detectors (Key finder)Developers can use the Bluetooth GATT APIs to access Bluetooth LE services, descriptors, and characteristics
Bluetooth RFCommConnect, host, and communicate with Bluetooth RFCOMM device services Devices using Serial Port Profile (SPP) are supportedClient and server Service Discovery Protocol (SDP)
Background Tasks and TriggersApp can receive Bluetooth data when its running in the backgroundLaunch when a Bluetooth event occurs
Bluetooth
31
Mobile device management (MDM)More policy supportClient Certificate authenticationConvergence with Windows cryptography APIsWi-Fi & VPNS/MIMEApplication management
Enterprise Enhancements
secured
32
And much, much more…Email with
Attachments
SL XAML/ Direct3D
enhancements
FileOpenPicker,
FileSavePicker
Read/Write access to SD
card
Easier NFC secure
payment
Wallet cards Known Folders
(Audio/Video/:Pictures)
Appointments/Calendar
API enhancement
s
Appointments/Calendar brokered UI
New background Transfer API
Sensors: Acceleromete
r, light, magnet …
Data Sense 2 WinRT HttpClient
Storage API enhancement
s
Graphics enhancements D2D/DWrite
Social RT AtomPub, Http,
Syndication (Windows.We
b)
Advertising ID
Data.XML Audio effects
33
Nick RandolphE ~ nick@builttoroam.comT ~ @btroam