windows phone 8 app development

41
Windows Phone 8 Apps Development Faculty Guide Prof. Jaydeep Gheewala Prajapati Dalpat J.

Upload: dalpattapaniya

Post on 10-May-2015

1.248 views

Category:

Technology


3 download

DESCRIPTION

Windows Phone 8 App Development : Here is basic introduction of app development of windows phone 8. Happy Sharing. :)

TRANSCRIPT

Page 1: Windows Phone 8 App Development

Windows Phone 8 Apps Development

Faculty GuideProf. Jaydeep Gheewala

Prajapati Dalpat J.

Page 2: Windows Phone 8 App Development

introduction

Windows Phone

Windows Phone OS

Page 3: Windows Phone 8 App Development

Shared Windows Core

Shared Core means •OS components such as the kernel, networking, graphics support, file system and multimedia are the same on both Windows 8 and Windows Phone 8 •Hardware manufacturers work with the same driver model on both platforms •Windows Phone gets the support for multi-core and other hardware features that Windows has had for years •These solid, common foundations makes it easier to extend the Windows Phone platform into the future

It doesn’t mean •Windows 8 and Windows Phone 8 developers work to exactly the same APIs •(though you will see more commonality as new features are introduced to both platforms in the future)

Page 4: Windows Phone 8 App Development

Common native API

Common native API

Description

DirectX For Mulrimedia

XAudio2 Audio API

MediaEngine Video Playback

STL Standard Templete Library

CRT C Runtime Library

WinSock Windows Sockets

Page 5: Windows Phone 8 App Development

Common Windows Runtime API

Common Windows Runtime APINetworkingSensorsProximityStorageDataSaver/Connection ManagerLocationTouchOnline IdentityKeyboardLaunchers & ChoosersIn-App PurchaseSensorsThreadingBase Types/ Windows.Foundation

Page 6: Windows Phone 8 App Development

Similar XAML UI Controls You create your UI on both platforms using XAML. Your app will consist of one or more pages, and each page contains a UI created by and customized by UI controls. The set of controls available on Windows Phone 8 is available in the System.Windows.Controls namespace. The set of controls used on Windows 8 is in the Windows.UI.Xaml.Controls namespace. Although these are different namespaces and the types are different, there’s a lot of similarity in the controls that are supported.

Most of the controls are named the same and will be familiar to you coming from either platform. This supports design reuse you can design your app for Windows Phone 8 and Windows 8 with the same UI building blocks in mind.

Page 7: Windows Phone 8 App Development

Windows Phone 8 Programming API

Windows Phone 8 supports •Managed app dev using the

WP7.1, WP8.0 .NET and

Windows Phone Runtime APIs

•Native app dev using WinPRT

and Win32

•Games dev using the WP7.1

XNA framework

•Games dev using Direct3D or

DirectX

Page 8: Windows Phone 8 App Development

.NET API for Windows Phone

The .NET API for Windows Phone is the primary managed API •Includes all the types and APIs from Windows Phone OS 7.1 •Contains classes and types from the System and Microsoft.Phone namespaces There have been new classes added for Windows Phone 8.0, for example •Microsoft.Phone.Wallet

•Microsoft.Phone.Tasks.ShareMediaTask

•Microsoft.Phone.Tasks.MapsTask

•Microsoft.Phone.Storage.ExternalStorage

•Microsoft.Phone.Networking.Voip

•Many more…!

.NET API for Windows

Phone

Windows Phone

RunTime

Win32 & COM

Managed Managed & Native

Native

Page 9: Windows Phone 8 App Development

Windows Phone Runtime API.NET API for

Windows Phone

Windows Phone

RunTime

Win32 & COM

Managed Managed & Native

Native

Windows Phone Runtime is a subset of the full WinRT, plus some phone-specific additions •Windows (Phone) Runtime is implemented in C++ and projected into C#, VB.NET, and C++

•HTML5/JavaScript projection not available on Windows Phone 8

Phone-specific additions to Windows Phone Runtime include •Speech synthesis and recognition •Windows.Phone.PersonalInformation •LockScreen and LockScreenManager •More…

Full WinRT (around 11,000 members)

Subset adopted for Windows Phone Runtime (around 2,800 members)

New for Windows Phone Runtime (around 600 members)

Page 10: Windows Phone 8 App Development

Win32 & COM API for Windows Phone

In addition to .NET and Windows Phone Runtime, you have access to some Win32 APIs •Winsock for low-level networking •Camera APIs for native code apps •COM APIs such as CoInitializeEx, CoTaskMemAlloc, CoTaskMemFree, CreateFile2, ReadFile, WriteFile, HeapAlloc, CreateMutexExW, WaitForSingleObjectW,…many others… Mainly of interest to native code developers Managed applications could call these by adding a native project to the solution, but there are few situations where this will be used

.NET API for Windows

Phone

Windows Phone

RunTime

Win32 & COM

Managed Managed & Native

Native

Page 11: Windows Phone 8 App Development

Getting Started

Page 12: Windows Phone 8 App Development

Development PC Requirement

Supported Operating Systems Windows 8 64-bit(x64) client versions

Hardware 8 GB free disk space4GB of RAM64-bit motherboard

Windows Phone Emulator Windows 8 Pro or Higher (for Hyper - V) and Second level Address Translation(SLAT)

Page 13: Windows Phone 8 App Development

Introduction toWindows Phone SDK 8.0Tools

Page 14: Windows Phone 8 App Development

Visual Studio

Windows Phone Emulator

Page 15: Windows Phone 8 App Development

Developer Phone Registration

•Before you can deploy your own programs

to the device you need to register it as a

developer device

•This is done once for a particular phone

•Registered developers can register up to

three devices

•Registered students can register one device

Page 16: Windows Phone 8 App Development

Overview of New Features for Developers in Windows Phone 8.0

Page 17: Windows Phone 8 App Development

•Flip – flips from front to back (similar to the WP 7.1 Tile template)

•Iconic – clean iconic layout designed to reflect Windows Phone design principles

•Cycle – cycles through up to nine images

Tile Templates and Tile Sizes

Page 18: Windows Phone 8 App Development

Lock Screen on Windows Phone 8

You can register your app as a lock screen provider, which enables:

•User can select your app to show detailed status on the lock screen

•Can select your app as one of the five apps to show quick status (icon and count)

•Can select your app as the lock screen background image provider

Page 19: Windows Phone 8 App Development

Maps

•Windows Phone 8 has new Maps controls •Bing Maps control from Windows Phone OS 7.1 is still supported, but deprecated •The new Maps controls use technology supplied by Nokia New features:

•Vector-based for faster rendering •Four cartographic map modes •Light and dark color modes •Display landmark and pedestrian features

Page 20: Windows Phone 8 App Development

Location and Location Tracking

New Location API in the Windows Phone Runtime API set •Similar to Windows 8 Location API

Windows Phone OS 7.1 .NET Location API still supported Background location-tracking apps

•Run continuously in the background when the user navigates away from the app

•Enables scenarios such as Run Trackers, turn-by- turn navigation

Page 21: Windows Phone 8 App Development

Speech

•Windows Phone 8 allows you to enable users to robustly interact with your app using their voice •Two types of voice interaction are new:

•Voice Commands - Allows users to deep-link into your app by holding down the Start button and speaking a prefix you specify for your app, followed by a command that you define.

•Speech Recognition and Text-to-Speech APIs - While in the context of your app, allow users to provide input using their voice, and readout text to users via text-to-speech

Page 22: Windows Phone 8 App Development

Wallet

Credit & Debit Cards

Loyalty & Membership Cards

Access Saved Deals

Supports NFC ‘Tap to Pay’

Page 23: Windows Phone 8 App Development

UI Controls

LongListSelector •Flat lists •Grouped lists – with headers •Jump List •Formerly in the Silverlight Toolkit

Pivot and Panorama now in ROM WebBrowser control now based on Internet Explorer 10

Page 24: Windows Phone 8 App Development

VoIP and Video Chat

•Incoming VoIP calls work like any other call •Integrates with built-in phone features

•VoIP apps continue to run in the background

•Available to all developers

Page 25: Windows Phone 8 App Development

Other Features

Camera and Photos MediaBluetooth and NFCBetter Sharing with NFC Networking Enhancements Storage – Read from SD Card Custom Contact Store File and Protocol AssociationsEnterprise app deployment And many more…

Page 26: Windows Phone 8 App Development

App Model

XAML UI with Managed Code

XNA Games using Managed Code

Direct3D App

Direct3D and XAML

XAML/Managed plus Native Code

HTML5 App Development

Page 27: Windows Phone 8 App Development

Designing Windows Phone Applications

Page 28: Windows Phone 8 App Development

Windows Design Principles

Take care of the details

Make it safe and reliable

Uncompromising Sensitivity to Weight, Balance and Scale Align to the grid

1.Pride in craftsmanship

Page 29: Windows Phone 8 App Development

Windows Design Principles

2.Be fast and fluid

Life is mobile

Delight with motion

Design for touch

Intuitive interaction

Be responsive and ready

Immersive and compelling

Page 30: Windows Phone 8 App Development

Windows Design Principles

3.Do more with less

Be great at something Focused and direct

Content before chrome Inspire confidence

Page 31: Windows Phone 8 App Development

Windows Design Principles

4.Authentically Digital

Don’t Try to be What It’s NOT Cloud connected

Dynamic and alive

Beautiful use of typography

Bold vibrant colours Motion

Page 32: Windows Phone 8 App Development

Windows Design Principles

5.Win as one

Fit into the UI model

Reduce redundancy

Work together to complete scenarios

Tools and templates are designed to scale

Page 33: Windows Phone 8 App Development

Designing an App

Page 34: Windows Phone 8 App Development

Design on Paper Before You Touch the Tools!

Page 35: Windows Phone 8 App Development

Design App Navigation Early!

Page 36: Windows Phone 8 App Development

Tools for the Job: Graphical Design

•A UX designer can use Blend to specify the appearance of the user interface

•A version of Blend for the phone is supplied as part of the phone SDK

Now Start Building With the Tools

Page 37: Windows Phone 8 App Development

Tools for the Job: Code Creation

•A Developer can take the user interface design and use Visual Studio build the program to make it work

•Visual Studio provides a design environment but it is not as advanced as Blend

Page 38: Windows Phone 8 App Development

Project Templates and Components

•Windows Phone SDK provides a set of project templates

•Each of them maps onto a particular style of application

Page 39: Windows Phone 8 App Development

Application Templates

Panorama applicationPivot applicationBasic single page app

Page 40: Windows Phone 8 App Development

Sample App

CookBook

Page 41: Windows Phone 8 App Development

Thank You

Reference :