Discovering the wp8 sdk
-
Upload
nico-vermeir -
Category
Documents
-
view
2.717 -
download
2
description
Transcript of Discovering the wp8 sdk
Exploring the WP8 SDK@NicoVermeir
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
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
What’s new?
• Simulation Dashboard• Low bandwidth connection or poor signal• An interruption such as reminder• Lock screen
• Launchers• SaveAppointmentTask• MapDownloaderTask• MapsTask• MapsDirectionstask
System RequirementsMEMBERS
System Requirements - SDK
• Windows 8 64-bit• 6.5 GB free disk space• 4 GB RAM• 64-bit CPU
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)
CoreInfo
• CoreInfo.exe -v
Second Level Address Translation
• Used by Hyper-V• Helps translating guest physical addresses to host physical addresses
Emulator
• 4 images, one for each resolution• Complete OS• Powered by Hyper-V• Separate device on network
DemoWindows Phone 8 Emulator
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
Debugging
• Debug managed or Native Code• Even when launched from tile or notification
Demodebugging
Tiles
• Three Templates• Flip• Iconic• Cycle
• Three sizes• Secondary tiles
DemoTiles
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
DemoLockscreen
Multi-resolution
Multi-resolution
Multi-resolution
• Apps scale automatically• Default resolution is 800x480• Build assets for highest resolution• Resolution and scale can be checked from code
DemoMulti-resolution
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.
Wallet
DemoWallet
Lenses
• Camera app• Launched from the camera• For example: Bing Vision
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
DemoLenses
Speech
• Text to speech• Speech to text• Voice commands
DemoSpeech
Location
• New api (WP7 version still works as well)• Background tracking• Only one app• GeoLocator keeps the app alive• Drains battery
DemoLocation
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
Q&A