Discovering the wp8 sdk

36
Exploring the WP8 SDK @NicoVermeir

description

My slidedeck for the MSDN webcast on Discovering the WP8 SDK

Transcript of Discovering the wp8 sdk

Page 1: Discovering the wp8 sdk

Exploring the WP8 SDK@NicoVermeir

Page 2: Discovering the wp8 sdk

Who am I?

@[email protected]

www.spikie.be

Page 3: Discovering the wp8 sdk

Agenda

• What’s new in the Windows Phone 8 SDK• Installing the SDK

• System requirements• Emulator• Templates

• Debugging• Tiles• Lockscreen• Resolutions• Wallet• Lenses• Speech• Location

Page 4: Discovering the wp8 sdk

What’s new?

• LongListSelector• Pivot & panorama removed from SDK, now in ROM• Maps integrated in the SDK

• Microsoft.Phone.Maps• Microsoft.Phone.Maps.Controls• Microsoft.Phone.Maps.Services

• Lockscreen• Wallet• In-app purchases• Proximity• Bluetooth• DataSense

Page 5: Discovering the wp8 sdk

What’s new?

• Simulation Dashboard• Low bandwidth connection or poor signal• An interruption such as reminder• Lock screen

• Launchers• SaveAppointmentTask• MapDownloaderTask• MapsTask• MapsDirectionstask

Page 6: Discovering the wp8 sdk

System RequirementsMEMBERS

Page 7: Discovering the wp8 sdk

System Requirements - SDK

• Windows 8 64-bit• 6.5 GB free disk space• 4 GB RAM• 64-bit CPU

Page 8: Discovering the wp8 sdk

System Requirements - Emulator

• Windows 8 Pro or higher• Second Level Address Translation• EPT (Intel, Extended Page Table)• RVI (AMD, Rapid Virtualization Indexing)• Check your CPU with CoreInfo (http://bit.ly/1ojtfP)

Page 9: Discovering the wp8 sdk

CoreInfo

• CoreInfo.exe -v

Page 10: Discovering the wp8 sdk

Second Level Address Translation

• Used by Hyper-V• Helps translating guest physical addresses to host physical addresses

Page 11: Discovering the wp8 sdk

Emulator

• 4 images, one for each resolution• Complete OS• Powered by Hyper-V• Separate device on network

Page 12: Discovering the wp8 sdk

DemoWindows Phone 8 Emulator

Page 13: Discovering the wp8 sdk

Templates

• Windows Phone App• Windows Phone Databound App• Windows Phone Panorama App• Windows Phone Pivot App• Windows Phone XAML and D3D App• Windows Phone HTML5 App

Page 14: Discovering the wp8 sdk

Debugging

• Debug managed or Native Code• Even when launched from tile or notification

Page 15: Discovering the wp8 sdk

Demodebugging

Page 16: Discovering the wp8 sdk

Tiles

• Three Templates• Flip• Iconic• Cycle

• Three sizes• Secondary tiles

Page 17: Discovering the wp8 sdk

DemoTiles

Page 18: Discovering the wp8 sdk

Lockscreen

• 5 apps on lockscreen, users decides which ones• 30x30 icon• Transparant, white• Takes the count of the tile• Needs to be set in WPAppManifest.xml

Page 19: Discovering the wp8 sdk

DemoLockscreen

Page 20: Discovering the wp8 sdk

Multi-resolution

Page 21: Discovering the wp8 sdk

Multi-resolution

Page 22: Discovering the wp8 sdk

Multi-resolution

• Apps scale automatically• Default resolution is 800x480• Build assets for highest resolution• Resolution and scale can be checked from code

Page 23: Discovering the wp8 sdk

DemoMulti-resolution

Page 24: Discovering the wp8 sdk

Wallet

• Collect coupons, credit cards, memberships, loyalty cards, and more in one place.• Manage the payment instruments that they use in the app and music

store.• Link items in the Wallet to apps on their phone.• Make contactless transactions, using Near-Field Communication

(NFC), in some markets.

Page 25: Discovering the wp8 sdk

Wallet

Page 26: Discovering the wp8 sdk

DemoWallet

Page 27: Discovering the wp8 sdk

Lenses

• Camera app• Launched from the camera• For example: Bing Vision

Page 28: Discovering the wp8 sdk

Lenses

• Set capabilities ID_CAP_ISV_CAMERA and ID_CAP_MEDIALIB_PHOTO• Register lens extension• When activated, will navigate to /MainPage.xaml?Action=ViewfinderLaunch• Intercept with UriMapper, send to lens page

Page 29: Discovering the wp8 sdk

DemoLenses

Page 30: Discovering the wp8 sdk

Speech

• Text to speech• Speech to text• Voice commands

Page 31: Discovering the wp8 sdk

DemoSpeech

Page 32: Discovering the wp8 sdk

Location

• New api (WP7 version still works as well)• Background tracking• Only one app• GeoLocator keeps the app alive• Drains battery

Page 33: Discovering the wp8 sdk

DemoLocation

Page 34: Discovering the wp8 sdk

Take aways

• SLAT needed for the emulator (coreinfo.exe)• Windows 8 needed for the SDK• Debug when launched from notification or secondary tile• Simulation dashboard• Templates for native code and HTML5• Three tile templates, flip, iconic and cycle• Apps can be on the lockscreen• Apps scale automatically to one of three resolutions or two aspect ratios• Wallet can be used for discounts, memberships and deals• Lenses are camera apps• Speech API provides TTS, STT and voice commands• GeoLocator can track location from the background, only one app can do this

Page 35: Discovering the wp8 sdk

Q&A

Page 36: Discovering the wp8 sdk