Windows 8 预览示例

发布于 2025-01-03 17:40:32 字数 266 浏览 3 评论 0原文

我已经下载了 Microsoft 网站上提供的 Metro 风格应用程序示例。有很多示例展示了如何与硬件设备(传感器、GPS 等)进行交互。当然,我已经下载了 Windows 8 开发人员预览版来执行这些示例。我的问题是:如何测试使用设备硬件(GPS、加速计)或使用模拟器访问电话功能(短信等)的样本? 目前还没有支持 Windows 8 的设备(第一款手机可能会在今年秋天推出)? 我想开始开发一些 Metro 风格的应用程序,以便在 Windows 8 商店上线时做好准备,但仅使用模拟器是一个很大的限制,不是吗?

I have downloaded the Metro Style Application Sample that is available on the Microsoft Web Site. There are lots of examples that shows how you can interact with the hardware device (sensors,gps,etc). I have of course downloaded the Windows 8 Developer preview to execute those examples. My question is : how can I test those samples that uses the device hardware (gps, accelerometer) or that accesses to the phone features (sms,etc) using the emulator?
At the moment there are not devices that support windows 8 (the first phone will probably come out this autumn) ?
I'd like to start to develop some metro style applications to be ready when windows 8 store will be online but using just the emulator is a big limitation isn't it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝天白云 2025-01-10 17:40:32

是和不是。有些平板设备可以很好地运行 Windows 8 Dev Preview。

如果您无法获得其中之一,一种选择是为所有设备创建您自己的接口。在下面你可以有两个实现。

  1. 第一个,您通过 Windows 8 API 连接到实际的底层设备。当然,在拥有设备之前您无法测试这些,但这就是生活。
  2. 第二种实现可以是虚拟的。例如,您可以运行一个线程,并每 2-3 秒发布一些 GPS 事件。

这样,您至少可以获得一些可以暂时进行测试的虚拟设备数据。

Yes and no. There are slate devices that can run the Windows 8 Dev Preview just fine.

If you are unable to get one of these, one option is to create your own interfaces for all the devices. Underneath you can have two implementations.

  1. First one, you connect to the actual underlying devices via the Windows 8 APIs. Sure you won't be able to test these until you have a device but such is life.
  2. The second implementation can be a dummy one. For example, you can have a thread running and every 2-3 seconds publishing some GPS event.

That way you at least have some dummy device data coming in that you can test with for the time being.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文