天天看點

Windows Phone 8 開發快速入門



Windows phone  8API

1..netAPI

2.Windows phone Runtime

 WinRT子集

 手機特有的API

語音合成與識别

Windows. Phone.PersonalInformation

LockScreen and LockScreen and LockScreenManager

`````

3.Native Win32 Direct3D,XAudio2,MF,WASAPI,Win32&COM API

WinSock

應用模式模型

一.XAML UI with Managed Code

1.Windows phone應用最常見的方式

2.使用XAML定義UI

3.使用C#或者VisualBasic.NET編寫邏輯代碼

4.調用.NET APIs andWindows Phone Runtime APIs

應用模型執行個體

Windows phone C#-->MainPage-->InitialPage

二.XNA Games using Managed Code

1.使用XNA架構編寫Windows phone應用

2.與Windows phoneOS7.1的功能相同

3.使用C#或者WisualBasic.NET編寫邏輯代碼

4.可調用。NET 7.1 APIs,不能調用Windows phone8 APIs

5.項目模版與VisualStudio2010相同

三.Direct3D應用

1.Direct3D應用完全由本地代碼編寫

2.遊戲開發最大限度的與PC應用共享代碼

3.可調用Windows phoneRuntime APIs-Windows 8 SDK的子集

4.共享本地元件包括計算引擎、圖形庫和API

四.Direct3D and XAML

1.開發者可建立整合Direct3D的XAML建立托管應用

2.可使用Windows phoneDirect3D with XAML應用模版

五. XAML/Managed plus Native Code

1.在托管XAML解決方案中增加C++動态連結庫或者Windows phone Runtime 元件

2.Win32 API集支援Winsock和File I/O函數

3.本地代碼中的計算密集型的元件可提高性能(包括圖形處理、計算子產品、渲染等)

HTML5 APP的開發

1.不支援Windows8HTML5\Java Script應用程式開發

2.内置

Windows phone HTML5 APP模版-->MainPage.xaml.cs

>>index.html(java web)

-->WebBrowser

Windows phone7.x應用相容性

相同的API在WP8和WP7.1中特可能有所不同。

Windows phone OS 7.1在Windows phone8上運作可能不同

1.源于不相容性和應用的突發模式更改

2.二進制不相容性或者重大更改

Windows phone8新功能概述

1.圖塊模版(磁鐵)

1.Flip翻轉模版-flipsfrom front to back

2.Iconic循環模版-以Windows phone 設計原則為基礎

3.Cycle循環模版-在九章模闆中循環

2.鎖定螢幕

3.啟動器和選擇器

1.啟動器和選擇器API調用獨特的内置應用程式來替換目前運作的應用程式。

2.New Launchers in Windows Phone 8:

1.SaveAppointmentTask

2.ShareMediaTask

3.MapDownLoaderTask

4.MapUpdaterTask

5.MapsTask

6.MapsDirectionsTask

4.地圖

1.Windows Phone 8采用新的地圖控件

2.Windows Phone OS 7.1 Bing Maps控件仍然支援,但不推薦使用

3.新的地圖控件采用諾基亞技術

4.新特征:

1.矢量地圖

2.四中制圖模式

3.淺色和深色顔色模式

4.顯示地标和步行街構造

5.定位和跟蹤

1.新的Location API內建于Windows Phone Runtime API

2.Windows Phone OS7.1.NET Location API still supported

3.背景位置跟蹤

1.适用場景

2.Run  Trackers, Turn-by-Turnnavagation

6.語音(識别,指令,轉換(TTS))

7.錢包Support NFC'Tap to Pay'

8.UI控件

1.LongListSelector

2.Pivot and now in ROM

3.WebBrowser control now based on Internet Explorer 10

9.多分辨率支援

1.支援擷取目前螢幕的分辨率

2.針對各自不同的分辨率使用各自的資源檔案

3.支援Grid等控件

10.相機和照片

1.lenses鏡頭

2.Picture.GetPreviewImage()傳回縮略圖圖像

3.新的圖檔拓展功能

4.圖檔背景自動上載

1.Automatically upload photos to a photo storage service using aresource-intensive background agent

5.Advanced camera capture APIs

11.多媒體

1.音樂媒體庫

2.圖檔媒體庫

3.背景音頻

1.在Windows Phone8中,當BackgroundAudioPlayer的狀态更改時,您可以從PlayStateChangedEventArgs中捕獲有關狀态改變的資訊

12.VoIP

1.Incoming VoIP calls work like any other call

2.Integrates with built-in phone features

3.VoIP apps continue to run in the background

4.Available to all developers

13.藍牙和NFC

1.利用藍牙技術建立與其他手機通信的應用

2.Bluetooth API在Windows Phone8适用場景

1.App-to-app通信

2.App-to-device通信

3.鄰近感應(Proximity):

1.使用NFC在裝置之間發送資料

2.NFC标記互動

3.在您的應用和鄰近裝置上的應用的執行個體在實際建立Wi-Fi或藍牙連接配接

  1. Better Sharing with NFC

15.網絡增強功能

1.Windows.Networking Windows Phone Runtime API

2.傳入套接字(IncomingSockets)

3.支援IPV6

4.Winsock本地API支援

5.資料感覺(Data sense)

16.存儲-SD卡

17.自定義聯系人存儲

18.應用内支付

19.In-AppPurchase used for digital content

20.企業應用分發