63
Developing apps for Windows Phone 8

Developing Apps for Windows Phone 8

Embed Size (px)

DESCRIPTION

Developing Apps for Windows Phone 8 - The 5th seminar in public seminar series from KMS Technology which have been delivering from 2011 in every two months

Citation preview

Page 1: Developing Apps for Windows Phone 8

Developing apps for Windows

Phone 8

Page 2: Developing Apps for Windows Phone 8

Testing Devices are sponsored by

Page 3: Developing Apps for Windows Phone 8

Agenda Introduction

Windows Phone Fundamentals

Windows Phone Notifications

Windows Phone Sensors

Shared core with Windows 8

Reuse your skills to build WP8 apps

Page 4: Developing Apps for Windows Phone 8

Live Tile vs. Icon

Page 5: Developing Apps for Windows Phone 8

Shared User Experience

Windows 8WP 8

Page 6: Developing Apps for Windows Phone 8

Shared Core

Page 7: Developing Apps for Windows Phone 8

Window Phone Store: 120,000 Apps

Page 8: Developing Apps for Windows Phone 8

8 Big Things You Must Know About

Windows Phone 8

Page 9: Developing Apps for Windows Phone 8

1. The Modern Hardware

Page 10: Developing Apps for Windows Phone 8

2. Internet Explorer 10

• 4x faster JavaScript performance

• 2x HTML5 feature support

Page 11: Developing Apps for Windows Phone 8

3. Native Code for Games• Native game development

platform based on DirectX

• Write the same game for Windows 8 and WP8

Page 12: Developing Apps for Windows Phone 8

4. Speech

• Integrate speech-to-text and text- to-speech with Speech APIs

• 15 supported languages

• Voice commands to open apps from start screen

Page 13: Developing Apps for Windows Phone 8

5. Proximity APIs

• NFC Tap-to-Share & Tap-to-Pay

• Bluetooth APIs

Page 14: Developing Apps for Windows Phone 8

6. Nokia Map Technology

• Download map data for offline use

• Turn-by-turn directions

• Background location tracking

Page 15: Developing Apps for Windows Phone 8

7. Camera and Lenses• Lens apps integrate into the camera

• Auto-upload pictures to web service

Page 16: Developing Apps for Windows Phone 8

8. Personalizing Your Screen

Page 17: Developing Apps for Windows Phone 8

Built-in VoIP and Video Chat

• Incoming VoIP calls feel like any call

• Integration with built in phone features

• VoIP apps run in background

• Available to all developers

Page 18: Developing Apps for Windows Phone 8

Truly Global, Deeply Local

• 50 Languages

• Apps available in 180+ countries

Page 19: Developing Apps for Windows Phone 8

Getting Started

Pro or higher

http://dev.windowsphone.com/en-us/downloadsdk

Page 20: Developing Apps for Windows Phone 8

DemoHow to create your first app for Windows Phone

Page 21: Developing Apps for Windows Phone 8

Agenda Introduction

Windows Phone Fundamentals

Windows Phone Notifications

Windows Phone Sensors

Shared core with Windows 8

Reuse your skills and code to build WP8 apps

Page 22: Developing Apps for Windows Phone 8

Lifecycle

5 seconds

Page 23: Developing Apps for Windows Phone 8

Demo app lifecycle

Page 24: Developing Apps for Windows Phone 8

UI Controls and UI Toolkit

• Panorama

• Pivot

• Telerik RadControls

Page 25: Developing Apps for Windows Phone 8

Panorama, Pivot, RadControls Demo

Page 26: Developing Apps for Windows Phone 8

What is Live Tile?• A shortcut to an app• Three tile sizes• Three tile types

26

Page 27: Developing Apps for Windows Phone 8

Tile Sizes

27

Tile Size Flip and Cycle Images

Iconic Images

Small 159 x 159 pixels 159 x 159 pixels 110 x 110 pixels

Medium 336 x 336 pixels 336 x 336 pixels 202 x 202 pixels

Wide 691 x 336 pixels 691 x 336 pixels N/A

Page 28: Developing Apps for Windows Phone 8

Tile Templates• Flip – flips from front to

back

• Iconic

• Cycle – cycles through up to nine images

28

Page 29: Developing Apps for Windows Phone 8

Defining App Live Tile

Page 30: Developing Apps for Windows Phone 8

Tiles Demo

Page 31: Developing Apps for Windows Phone 8

• User can select any five apps to show quick status

• All you have to do is– Create an icon– Declare the app’s intent in the

application manifest file

Lock Screen

Page 32: Developing Apps for Windows Phone 8

Agenda Introduction

Windows Phone Fundamentals

Windows Phone Notifications

Windows Phone Sensors

Shared core with Windows 8

Reuse your skills to build WP8 apps

Page 33: Developing Apps for Windows Phone 8

Windows Phone Notifications Three Kinds of Push Notification:

• Toast • Tile• Raw

http://msdn.microsoft.com/en-us/library/ff402545(v=VS.92).aspx

Page 34: Developing Apps for Windows Phone 8

Push Notification Data Flow

Page 35: Developing Apps for Windows Phone 8

Push Notification Demo

Page 36: Developing Apps for Windows Phone 8

Agenda Introduction

Windows Phone Fundamentals

Windows Phone Notifications

Windows Phone Sensors

Shared core with Windows 8

Reuse your skills to build WP8 apps

Page 37: Developing Apps for Windows Phone 8

Windows Phone 8 Sensors

Page 38: Developing Apps for Windows Phone 8

Windows Phone 8 Sensors - Map

Page 39: Developing Apps for Windows Phone 8

• Replaces Bing Maps

• Converges with Windows 8

Maps APIs

Page 40: Developing Apps for Windows Phone 8

• Add a Map to your UI <Grid x:Name="ContentPanel" > <maps:Map x:Name="MyMap"/> </Grid>

Map MyMap = new Map();

ContentPanel.Children.Add(MyMap);

Map Control

Page 41: Developing Apps for Windows Phone 8

Mapping offline in native and apps

Route Queries do not require a network

Offline Maps

MapDownloaderTask mdt = new MapDownloaderTask();mdt.Show();

Page 42: Developing Apps for Windows Phone 8

• MapTask: launch the map in 2 lines of code

• MapsDownloaderTask: download map data for offline in 2 lines of code

• MapsDirectionTask: start turn-by-turn directions in 4 lines of code

Built-In Map Tasks

Page 43: Developing Apps for Windows Phone 8

Sensors – Proximity

Page 44: Developing Apps for Windows Phone 8

• Near Field Communications (within 3-4 centimetres)

• Transfer of a message or byte stream from one device to another

• Using Bluetooth or WiFi

NFC

Page 45: Developing Apps for Windows Phone 8

NFC OptionsApp to app App to device

Tag to App

Page 46: Developing Apps for Windows Phone 8

NFC Demo

Page 47: Developing Apps for Windows Phone 8

Sensors – Speech APIs

Page 48: Developing Apps for Windows Phone 8

• 15 supported languages

• Multiples voices per language

Sensors – Speech APIs

Page 49: Developing Apps for Windows Phone 8

• Speech Synthesis (Text to Speech)

• Speech Recognizer (Speech to Text)

• Voice Commands

Sensors – Speech APIs

Page 50: Developing Apps for Windows Phone 8

Text To Speech

Page 51: Developing Apps for Windows Phone 8

Speech To Text

Page 52: Developing Apps for Windows Phone 8

DemoSpeech-To-Text, Text-To-

Speech

Page 53: Developing Apps for Windows Phone 8

Sensors - VoIP

Page 54: Developing Apps for Windows Phone 8

• Incoming VoIP calls work like any other call

• Integrates with built-in phone features

• VoIP apps continue to run in the background

VoIP and Video Chat

Page 55: Developing Apps for Windows Phone 8

Agenda Introduction

Windows Phone Fundamentals

Windows Phone Notifications

Windows Phone Sensors

Shared core with Windows 8

Reuse your skills to build WP8 apps

Page 56: Developing Apps for Windows Phone 8

• Windows 8

Common Structure

Windows Phone 8• WP 8

Page 57: Developing Apps for Windows Phone 8

Control Comparison

Windows Phone 8

Windows Phone 8Windows 8

Page 58: Developing Apps for Windows Phone 8

Common APIsWP 8Windows 8

Page 59: Developing Apps for Windows Phone 8

Agenda Introduction

Windows Phone Fundamentals

Windows Phone Notifications

Windows Phone Sensors

Shared core with Windows 8

Reuse your skills to build WP8 apps

Page 60: Developing Apps for Windows Phone 8

Reuse your skills to build WP8 apps

Page 61: Developing Apps for Windows Phone 8

HTML5 - IE10 Demo

Page 63: Developing Apps for Windows Phone 8