visual studio 2008 and windows mobile 6
TRANSCRIPT
移劢开发新技术:Visual Studio 2008 和 Windows Mobile 6
黎波
日程
Windows Mobile 6 新特性
Visual Studio 2008 移劢开发
Windows Mobile 6
Windows Mobile 6 简介
为开发人员带来了什么?
Windows Mobile 6 简介
基于 Windows Mobile 5.0 开发,版本号为5.2;
内核是 Windows CE 5.0,不是基于最新的Windows CE 6.0。
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
其他新功能
支持 HTML 格式的邮件
内置 Windows Mobile 版本的 Windows Live
Windows Live Messenger 支持文件传输
新版本的移劢版 Outlook、Word、Excel 和PowerPoint,增强编辑功能
支持 Windows Update
远程抹除被偷窃或丢失的设备上的数据
为存储卡加密
为开发人员带来了什么?
简化商业应用程序的开发和部署
更容易创建可适应多种设备的应用程序
增强的用户体验
简化商业应用程序的开发和部署
内置 .NET Compact Framework 2.0 SP1
内置 SQL Server Compact Edition
Device Emulator 2.0
Cellular Emulator
GPS 测试工具 FakeGPS
Windows Mobile Test Framework
.NET Compact Framework 2.0
性能得到了改进;
支持泛型和匿名方法;
改进了对控件的支持,新增控件,显示和布局管理,支持 UserControl;
数据处理增强,新增 SqlCeResultSet 类;
支持 XmlSerializer,XPath 和 XML Schema;
支持 COM Interop;
支持移劢设备的 Direct3D 和 DirectDraw。.NET Compact Framework 中的新增功能
SQL Server Compact Edition
版本号 3.1
支持台式机、智能设备和 Tablet PC
支持 RemoteDataAccess (远程数据访问)和Merge Replication (合并复制)两种数据同步方式,可以用于实现智能客户端的离线数据
Device Emulator 2.0
性能比 Device Emulator v1 提升了将近 40%
电源状态仿真可以触发相应的 State and Notifications Broker 事件
情景模式(Phone Profile)仿真耳机(headset)
扬声器(speakerphone)
汽车(car kit)
更多仿真设备
电源状态和情景模式仿真
更多仿真设备
Windows Mobile 6 Professional Square QVGA Windows Mobile 6 Standard Landscape QVGA
Cellular Emulator (蜂窝仿真器)
Cellular Emulator 可以用于测试你的应用程序在蜂窝通信状况变化时的行为,而不需要用到一台物理设备。
用 Cellular Emulator 可以实现一些简单的测试,如:在仿真器中拨打电话,接听来电和挂断电话,发送和接收 SMS 信息等。
给仿真器拨打电话
用7272024这个电话号码向仿真器拨打电话
仿真器收到电话号码为7272024的来电
从仿真器拨打电话
Busy 表示线路忙Reject 表示拒绝接听Hang Up After Connect 表示接听后再挂断No Answer 表示没有回应
向仿真器发送 SMS 信息
重复发送 SMS 信息
DEMODevice Emulator and Cellular Emulator
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
Fake GPS
DEMOFakeGPS
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.
可以实现智能设备应用程序的自劢化测试
具体如何使用可以参考张欣的博客
更容易创建可适应多种设备的应用程序
Device Emulator 2.0
统一的应用程序编程接口(API)
SDK 包含丰富的示例代码
增强的用户体验
新的用户界面,掌上的 Vista
新增平板电脑的墨迹式画图 API
新增声音API,支持播放MID, WMA, MP3 和WAV 等音频格式
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
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
.NET Compact Framework 3.5
New namespaces and classes
C# 3.0
LINQ
Windows Communication Foundation
新的命名空间和类
System.IO.CompressionGZipStream, DeflateStream 和 CompressionMode
System.MediaSoundPlayer, SystemSound 和 SystemSounds
System.DiagnosticsStopwatch
C# 3.0
自劢属性(Automatic Properties)
对象初始化器(Object Initializer)
集合初始化器(Collection Initializers)
扩展方法(Extension Methods)
Lambda表达式(Lambda Expressions)
查询句法(Query Syntax)
匿名类型(Anonymous Types)
自劢属性(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; }
}
对象初始化器(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
};
集合初始化器(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 }};
LINQ (Language Integrated Query)
LINQ to Object
LINQ to XML
LINQ to DataSet
不支持 LINQ to SQL
C# 3.0 学习资料
自劢属性,对象初始化器,和集合初始化器
扩展方法
Lambda表达式
查询句法
匿名类型
LINQ 项目:.NET 语言集成查询
LINQ 的演变及其对 C# 设计的影响
Windows Communication Foundation
支持 HTTP 和 SMTP 的方式访问 WCF 服务
SMTP 传输协议的支持,解决智能设备的无线网络的不稳定
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基于服务的数据同步机制
Unit Test for Device Application
Visual Studio 2008 支持为智能设备应用程序创建单元测试工程。
DEMOUnit Test for Device Application
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.
DEMODevice Security Manager
??
??
感谢大家!