visual studio 2008 and windows mobile 6

44
移劢开发新技术: Visual Studio 2008 Windows Mobile 6 黎波

Upload: marcio-gabe

Post on 12-Mar-2015

38 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Visual Studio 2008 and Windows Mobile 6

移劢开发新技术:Visual Studio 2008 和 Windows Mobile 6

黎波

Page 2: Visual Studio 2008 and Windows Mobile 6

日程

Windows Mobile 6 新特性

Visual Studio 2008 移劢开发

Page 3: Visual Studio 2008 and Windows Mobile 6

Windows Mobile 6

Windows Mobile 6 简介

为开发人员带来了什么?

Page 4: Visual Studio 2008 and Windows Mobile 6

Windows Mobile 6 简介

基于 Windows Mobile 5.0 开发,版本号为5.2;

内核是 Windows CE 5.0,不是基于最新的Windows CE 6.0。

Page 5: Visual Studio 2008 and Windows Mobile 6

Windows Mobile 6 的命名变化

Windows Mobile 5.0 Windows Mobile 6

Windows Mobile 5.0 for Smartphone Windows Mobile 6 Standard

Windows Mobile 5.0 for Pocket PC Phone Edition

Windows Mobile 6 Professional

Windows Mobile 5.0 for Pocket PC Windows Mobile 6 Classic

Page 6: Visual Studio 2008 and Windows Mobile 6

其他新功能

支持 HTML 格式的邮件

内置 Windows Mobile 版本的 Windows Live

Windows Live Messenger 支持文件传输

新版本的移劢版 Outlook、Word、Excel 和PowerPoint,增强编辑功能

支持 Windows Update

远程抹除被偷窃或丢失的设备上的数据

为存储卡加密

Page 7: Visual Studio 2008 and Windows Mobile 6

为开发人员带来了什么?

简化商业应用程序的开发和部署

更容易创建可适应多种设备的应用程序

增强的用户体验

Page 8: Visual Studio 2008 and Windows Mobile 6

简化商业应用程序的开发和部署

内置 .NET Compact Framework 2.0 SP1

内置 SQL Server Compact Edition

Device Emulator 2.0

Cellular Emulator

GPS 测试工具 FakeGPS

Windows Mobile Test Framework

Page 9: Visual Studio 2008 and Windows Mobile 6

.NET Compact Framework 2.0

性能得到了改进;

支持泛型和匿名方法;

改进了对控件的支持,新增控件,显示和布局管理,支持 UserControl;

数据处理增强,新增 SqlCeResultSet 类;

支持 XmlSerializer,XPath 和 XML Schema;

支持 COM Interop;

支持移劢设备的 Direct3D 和 DirectDraw。.NET Compact Framework 中的新增功能

Page 10: Visual Studio 2008 and Windows Mobile 6

SQL Server Compact Edition

版本号 3.1

支持台式机、智能设备和 Tablet PC

支持 RemoteDataAccess (远程数据访问)和Merge Replication (合并复制)两种数据同步方式,可以用于实现智能客户端的离线数据

Page 11: Visual Studio 2008 and Windows Mobile 6

Device Emulator 2.0

性能比 Device Emulator v1 提升了将近 40%

电源状态仿真可以触发相应的 State and Notifications Broker 事件

情景模式(Phone Profile)仿真耳机(headset)

扬声器(speakerphone)

汽车(car kit)

更多仿真设备

Page 12: Visual Studio 2008 and Windows Mobile 6

电源状态和情景模式仿真

Page 13: Visual Studio 2008 and Windows Mobile 6

更多仿真设备

Windows Mobile 6 Professional Square QVGA Windows Mobile 6 Standard Landscape QVGA

Page 14: Visual Studio 2008 and Windows Mobile 6

Cellular Emulator (蜂窝仿真器)

Cellular Emulator 可以用于测试你的应用程序在蜂窝通信状况变化时的行为,而不需要用到一台物理设备。

用 Cellular Emulator 可以实现一些简单的测试,如:在仿真器中拨打电话,接听来电和挂断电话,发送和接收 SMS 信息等。

Page 15: Visual Studio 2008 and Windows Mobile 6

给仿真器拨打电话

用7272024这个电话号码向仿真器拨打电话

仿真器收到电话号码为7272024的来电

Page 16: Visual Studio 2008 and Windows Mobile 6

从仿真器拨打电话

Busy 表示线路忙Reject 表示拒绝接听Hang Up After Connect 表示接听后再挂断No Answer 表示没有回应

Page 17: Visual Studio 2008 and Windows Mobile 6

向仿真器发送 SMS 信息

Page 18: Visual Studio 2008 and Windows Mobile 6

重复发送 SMS 信息

Page 19: Visual Studio 2008 and Windows Mobile 6

DEMODevice Emulator and Cellular Emulator

Page 20: Visual Studio 2008 and Windows Mobile 6

GPS Intermediate Driver (GPSID)

自从 Windows Mobile 5.0 引进了 GPSID,开发基于 GPS 的 Windows Mobile 应用程序变得简单多了;GPSID 在应用程序和 GPS 设备之间加入了一个中间层,使开发人员不需要通过串口直接访问GPS 设备,而是访问 GPSID 提供的 API 函数,GPSID 再去访问 GPS 设备;GPSID 有两个好处:

多个应用程序可以同时访问同一个 GPS 设备,因为你访问的是 GPSID不需要去解析 NMEA 命令,GPSID 帮你解析好了

GPS Intermediate Driver Reference

Page 21: Visual Studio 2008 and Windows Mobile 6

Fake GPS

Page 22: Visual Studio 2008 and Windows Mobile 6

DEMOFakeGPS

Page 23: Visual Studio 2008 and Windows Mobile 6

Windows Mobile Test Framework

The Windows Mobile Test Framework contains a collection of classes, interfaces, and value types that allow your test code to access controls and resources on a Windows Mobile device.

可以实现智能设备应用程序的自劢化测试

具体如何使用可以参考张欣的博客

Page 24: Visual Studio 2008 and Windows Mobile 6

更容易创建可适应多种设备的应用程序

Device Emulator 2.0

统一的应用程序编程接口(API)

SDK 包含丰富的示例代码

Page 25: Visual Studio 2008 and Windows Mobile 6

增强的用户体验

新的用户界面,掌上的 Vista

新增平板电脑的墨迹式画图 API

新增声音API,支持播放MID, WMA, MP3 和WAV 等音频格式

Page 26: Visual Studio 2008 and Windows Mobile 6

Windows Mobile 6 学习资料

Windows Mobile 6 中为开发人员提供的新功能

Windows Mobile 6 SDK 中的 Device Emulator 2.0

Windows Mobile 6 SDK 中的 Cellular Emulator

Windows Mobile 6 SDK 中的 GPS 工具

使用Windows Mobile Test Framework进行Windows Mobile程序的自劢化测试

(1)微软Windows Mobile Test Framework简介

(2) 小试牛刀

Deploying Windows Mobile 6 Powered Devices with Microsoft Exchange Server 2007

Page 27: Visual Studio 2008 and Windows Mobile 6

Visual Studio 2008 移劢开发新特性

.NET Compact Framework 3.5

SQL Server Compact 3.5

Device Emulator v3

Unit Test for Smart Device Application

Device Security ManagerAn Overview of Microsoft Visual Studio 2008 White Paper

Page 28: Visual Studio 2008 and Windows Mobile 6

.NET Compact Framework 3.5

New namespaces and classes

C# 3.0

LINQ

Windows Communication Foundation

Page 29: Visual Studio 2008 and Windows Mobile 6

新的命名空间和类

System.IO.CompressionGZipStream, DeflateStream 和 CompressionMode

System.MediaSoundPlayer, SystemSound 和 SystemSounds

System.DiagnosticsStopwatch

Page 30: Visual Studio 2008 and Windows Mobile 6

C# 3.0

自劢属性(Automatic Properties)

对象初始化器(Object Initializer)

集合初始化器(Collection Initializers)

扩展方法(Extension Methods)

Lambda表达式(Lambda Expressions)

查询句法(Query Syntax)

匿名类型(Anonymous Types)

Page 31: Visual Studio 2008 and Windows Mobile 6

自劢属性(Automatic Properties)

C# 2.0public class Person {

private string _firstName;

public string FirstName {

get { return _firstName; }

set { _firstName = value; }

}

private string _lastName;

public string LastName {

get { return _lastName; }

set { _lastName = value; }

}

private int _age;

public int Age {

get { return _age; }

set { _age = value; }

}

}

C# 3.0public class Person {

public string FirstName { get; set; }

public string LastName { get; set; }

public int Age { get; set; }

}

Page 32: Visual Studio 2008 and Windows Mobile 6

对象初始化器(Object Initializer)

C# 2.0

Person person = new Person();

person.FirstName = "Li";

person.LastName = "Bob";

person.Age = 25;

C# 3.0

Person person = new Person { FirstName="Li", LastName="Bob", Age=25

};

Page 33: Visual Studio 2008 and Windows Mobile 6

集合初始化器(Collection Initializers)

C# 2.0List<Person> people = new List<Person>();people.Add( new Person { FirstName = "Li", LastName = "Bob", Age = 25 } );people.Add( new Person { FirstName = "Zhu", LastName = "Xinlin", Age = 26 } );people.Add( new Person { FirstName = "Su", LastName = "Kansheng", Age = 26 } );

C# 3.0List<Person> people = new List<Person> {

new Person { FirstName = "Li", LastName = "Bob", Age = 25 },new Person { FirstName = "Zhu", LastName = "Xinlin", Age = 26 },new Person { FirstName = "Su", LastName = "Kansheng", Age = 26 }};

Page 34: Visual Studio 2008 and Windows Mobile 6

LINQ (Language Integrated Query)

LINQ to Object

LINQ to XML

LINQ to DataSet

不支持 LINQ to SQL

Page 36: Visual Studio 2008 and Windows Mobile 6

Windows Communication Foundation

支持 HTTP 和 SMTP 的方式访问 WCF 服务

SMTP 传输协议的支持,解决智能设备的无线网络的不稳定

Page 37: Visual Studio 2008 and Windows Mobile 6

SQL Server Compact 3.5

SQL Server Compact 3.5timestamp datatype

Nested query in SELECT FROM clause

CROSS APPLY and OUTER APPLY

CAST

TOP

Synchronization Services for ADO.NET基于服务的数据同步机制

Page 38: Visual Studio 2008 and Windows Mobile 6

Unit Test for Device Application

Visual Studio 2008 支持为智能设备应用程序创建单元测试工程。

Page 39: Visual Studio 2008 and Windows Mobile 6

DEMOUnit Test for Device Application

Page 40: Visual Studio 2008 and Windows Mobile 6

Device Security Manager

Security ConfigurationView or change security settings on a connected device or emulator.

Apply a standard security configuration to a device.

Apply a custom configuration to a connected device.

Export a device's security configuration settings to a desktop computer.

Certificate ManagementAdd certificates from the development computer to the device's certificate store.

Remove certificates from a device's certificate store.

Page 41: Visual Studio 2008 and Windows Mobile 6

DEMODevice Security Manager

Page 42: Visual Studio 2008 and Windows Mobile 6

??

??

Page 43: Visual Studio 2008 and Windows Mobile 6

联系方式

姓名:黎波

邮箱:[email protected]

博客:upto.cnblogs.com

公司:深圳市科脉技术有限公司

Page 44: Visual Studio 2008 and Windows Mobile 6

感谢大家!