如何在Android中进行传感器编程 [英] How Can I Do Sensor Programming In Android
本文介绍了如何在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 yourPC
theAndroid 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 theAndroid
device sensors, you could read theAPI
documentation, see, for instance, "Sensors Overview"[^].
Of course a good book onAndroid
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 aWindows 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屋!
查看全文