01, Windows Phone 8 Introduction

Source: Internet
Author: User
Tags hosting

Content preview:

  • New development platform in WP8
  • Application Development Model
  • WP8 version of winrt
  • Supported development modes
  • WP8 Development
  • New feature Preview
  • Use Windows Phone development tools
  • Compatibility with wp7.x

New WP8 hardware: Nokia Lumia 920,820, HTC 8x, huiwei W1, sum1_ativ S.

New hardware configuration: Multi-core, new graphics processor, larger memory, multi-resolution, memory card, encrypted storage, NFC.

Share Windows Kernel: Windows 8 will share multiple components with Windows 8 at the system level.

Shared kernel means: The kernel, network, graphics, file system, and multimedia components are the same. Hardware manufacturers can work with the same driver. Windowsphone supports multiple cores. Stable and general infrastructure can be easily expanded.

Shared kernel does not mean: Windows8 and windowsphone8 are developed using the same API (although many functions are common)

WP8 development API support:Use wp7.1, WP8. net, and winprtapi to develop managed apps. Use winprt and Win32 to develop local apps. Develop the game with xNa of wp7.1. Use DirectX and direct3d to develop games.

. Net API Based on windowsphone:Including all wp7.1 APIs, and all classes come from the system and Microsoft. Phone namespaces. The new class is

• Microsoft. Phone. Wallet • Microsoft. Phone. Tasks. sharemediatask • Microsoft. Phone. Tasks. mapstask • Microsoft. Phone. Storage. externalstorage • Microsoft. Phone. Networking. VoIP
... Windowsphone Runtime API:Windowsphone Runtime is a subset of winrt, plus some mobile phone-specific classes (such as TTS and VoIP ). Winprt is implemented in C ++ and then mapped to C #, VB, C ++, HTML 5/JS is not supported.

Select. Net API or winprt? Because they overlap, the difference is that one is hosting code and the other is local code:

If you want to span wp7.x and WP8, it is clear that. Net APIs are used.
If you want to span WP8 and Win8, you should use the winprt API. Win32 and COM APIs:Besides the preceding two APIs, you can also use 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

Code farmers interested in local code development can use this to host applications and use these APIs to reference a local project to a solution.

In the managed code, make the UI in XAML:Most apps use XAML for UI, C #/VB for logic writing, and then call. Net API and winprt API.

Use managed code for xNa games:XNa can be used to develop games like wp7.1. C #/vB can be used to write logic, but wp7.1's. Net API can only be used.

Pure direct3d app:Direct3d apps are completely written using local code and can only use direct3d for UI. You can share the basic code with the PC version and use winprt API to conveniently use some computing engines, graphics Library and C ++ API class library.

Direct3d and XAML integration:You can also use XAML as the UI and then embed it into the direct3d class library.

XAML/hosting + local:A hosted app can reference a c ++ DLL or winprt project in a hosted XAML project. Win32 API supports WinSock and file IO functions to port existing local code. High-performance computing can be achieved through local code.

HTML5 development:WP8 does not support HTML5/JS like Win8, but WP8 has ie10. You can use the webbrowser control and put HTML5 code in webbrowser for execution.

Development tools:Http://dev.windowsphone.com

Development Environment:Software/windows8 64bit, hardware/4G memory, 64bit motherboard, simulator need/I3 or above, hyper-V, slat.

Development Account:An account is not required to download the SDK, but it is required to unlock the mobile phone and submit the app. You can use the msdn subscribe account/student dreamspark subscribe/or buy it by yourself.

Three tile types:Flip, like wp7.x, can roll back and forth. Iconic. Cycle, such as the nine squares.

Lock screen information:You can register your app as the screen lock information provider. You can select the icons and counts of the five apps, or select the app whose status is displayed on the screen, which app can be selected as the screen lock background provider.

New starters:The launcher helps users take photos, select contacts, send emails, and send text messages.

  • Saveappointmenttask
  • Sharemediatask
  • Mapdownloadertask
  • Mapupdatertask
  • Mapstask
  • Mapsdirectionstask
Map:Bing map controls continue to be available, but Nokia map controls are recommended. New features include vector rendering, four drawing modes, day/night mode, landmark display, and walking path query.

Positioning and tracking:The positioning API of wp7.1 continues to support and added the positioning API in winprt. It can be run in the background, such as "track record" and "full navigation. Speech:Voice Control, which can execute commands preset in your app. Speech recognition and TTS can be used to input speech or convert the input into speech. E-Wallet:Available in credit card, debit card, membership card, supports NFC. UI control:Longlistselector has several display forms: Flat list, group list, jump list, and formerly.

Three screen resolutions:

Cameras and photos:You can use the API to control the focal length. You can use picture. getpreviewimage to return thumbnail images. You can register and share images with other image editing apps, upload files in the background, and use the API to adjust ISO, white balance, and exposure.Multimedia:You can use APIs to delete and save music. WP8 creates two thumbnails for each saved image. Smaller thumbnails can be obtained using thumbnail. thumbnail is used to obtain the same size as the original image. Playstatechangedeventargs is returned when the playing status of the background music changes.VOIP and video chat:Bluetooth and NFC:The Bluetooth API allows apps to communicate with other devices. The nfc api allows you to establish a connection from an app to an app through Bluetooth, establish a wi-fi, Bluetooth, or direct connection between two devices, and send data through NFC, interact with the mobile phone through an NFC tag.

Network enhancement:Supports sockets, including windows. Networking. sockets, system. net. sockets, and Win32 Winsock APIs. IPv6 is supported. Memory card:You can use Microsoft. Phone. Storage to read files from the SD card, expand private files (such as videos, images, and music) with the SD card, and install apps in the SD. Custom Contact Group:You can create an exclusive Contact Group for the app. You can create, update, delete, and query exclusive contacts through APIS. Synchronize contacts to the cloud. File and Protocol Association:You can register a file association. When you encounter a registered type in an email, browser, or Sharepoint, It will be opened with your app. An app can also send a file to open another app through the registration type. When another app opens a special URI, for example, myprotocol:/showproducts? Categoryid = aea6ae1f. Another app is opened and the parameters are passed at the same time.

In-app payment:Purchase digital properties, such as game levels, game equipment, map services, movie coupons, digital magazines, and e-books. Enterprise app deployment: It can be deployed using Microsoft tools, internal distribution, or third-party installation. enterprises can delete apps or issue commands to apps. Localization and internationalization:WP8 supports languages written from right to left. However, sometimes the language from the right to the left may contain text from the left to the right at the same time. For example, a foreign language can be included using the run control.

Faster running:Hosting apps in WP8 will be executed by the negn cost code, so it can start and run faster. When writing code in Vs, it does not compile the code at the cost, but it is irrelevant to the compiler machine. When an app is submitted, the pencil file is optimized to an optimized machine-dependent intermediate language called MDIL. When a user downloads your app, the JIT has been used to get the local image code.
Connect to the mobile phone:For wp7.1, Zune must be installed to synchronize files such as music. WP8 only requires a USB connection.

Register mobile phone:Before deploying an application to a mobile phone, you need to register the mobile phone as a development mobile phone. One user can register three mobile phones, and the student account can only register one mobile phone.

Deploy applications:You can directly deploy it when debugging with Visual Studio, or use the deployment tool that comes with the SDK. A mobile phone can only deploy 10 apps that are not uploaded to the store. Debugging:No local code is generated on the simulator. You can use Ctrl + F5 to debug the code on the device and use Alt + F1 for Performance Analysis (local code is generated ). Simulator:The simulator runs in hyper-V mode and comes with the SDK. It can simulate the position, horizontal and vertical orientation, lock screen, unlock, and network standard (2g, 3G, 4G, WiFi) and connectivity. The simulator cannot test performance. It can only test functions. It can be controlled with a mouse. It supports multi-touch simulation. It can be input on a physical keyboard and switched to the input mode using pgup/pgdn. A camera can be simulated, but a simple image is returned. Screenshots are supported (you can use the power + Home Key To Capture screenshots on a real machine ).

Compatibility:Generally, WP7 applications can run on WP8 without modification, but in some cases it does not. Some codes have different performances on WP7 and WP8. For example, assembly. GetType is implemented in different mscorlib. dll. Some mechanisms are also different from each other. For example, the GC Methods of wp7.1 and WP8 are completely different.

 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.