如何在Android中进行传感器编程 [英] How Can I Do Sensor Programming In Android

查看:95
本文介绍了如何在Android中进行传感器编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



请建议我如何在android中进行传感器编程...

当我想要向右或向左移动设备时产生数值我怎么能做那种类型的程序?

Hi,
Please suggest me how to do sensor programming in android ...
when i want to move a device right or left that time generate a numeric value how can i do that type of program ??

推荐答案

我想你的意思是:如何在PC上编写Android应用程序,读取设备传感器数据Windows操作系统。



您需要在 PC上安装 Android SDK (有关详细说明和选项,请参阅此页面:获取Android SDK [ ^ ])。然后你可以开发(并在提供的模拟器上测试)你的应用程序。

为了与 Android 设备传感器连接,你可以阅读 API 文档,例如,请参阅传感器概述 [ ^ ]。

当然,关于 Android 开发的好书会很有用。



[更新]

好​​的,我没有仔细阅读你的问题,所以我的回答是不平衡。

为了处理 Windows Phone 设备的传感器,您需要遵循类似于我为Android编写的路径。 MSDN 确实提供了必要的文档: 商店应用开发 [ ^ ]。

[/更新]
I suppose you meant: "How can I write an Android application, reading device sensors data, on a PC having Windows operative system".

You need to install on your PC the Android SDK (see this page for detailed instructions and options: "Get the Android SDK"[^]). Then you may develop (and test on the provided emulator) your app.
In order to interface with the Android device sensors, you could read the API documentation, see, for instance, "Sensors Overview"[^].
Of course a good book on Android development would be useful.

[UPDATE]
OK, I didn't carefully read your question, so my answer is 'not balanced'.
In order to handle sensors of a Windows Phone device you need to follow a path similar the one I wrote for Android. MSDN does provide the necessary documentation: "Store app development"[^].
[/UPDATE]


这篇关于如何在Android中进行传感器编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆