登录
首页 » 其他 » Android重力感应测试代码

Android重力感应测试代码

于 2022-09-05 发布 文件大小:47.60 kB
0 185
下载积分: 2 下载次数: 1

代码说明:

Android 手机重力传感器调用+源码,作者:Himi,手机加速度传感器 ,也称为重力传感器,自SDK 1.5(api 3)就支持传感器了。解释:此传感器不仅对玩家反转手机的动作可以检测到,而且会根据反转手机的程度,得到传感器的值也会不同!sensor = sm.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);//得到一个重力传感器实例   //TYPE_ACCELEROMETER 加速度传感器(重力传感器)类型。   //TYPE_ALL 描述所有类型的传感器。   //TYPE_GYROSCOPE 陀螺仪传感器类型   //TYPE_LIGHT 光传感器类型   //TYPE_MAGNETIC_FIELD 恒定磁场传感器类型。   //TYPE_ORIENTATION 方向传感器类型。   //TYPE_PRESSURE 描述一个恒定的压力传感器类型   //TYPE_PROXIMITY 常量描述型接近传感器   //TYPE_TEMPERATURE 温度传感器类型描述

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Still remember the time of the Snake FC games, two cute small snake eating Peas...
    还记得FC时代的贪吃蛇游戏吧,两只可爱的小蛇为了吃豆豆的冒险经历,现在贪吃蛇游戏也是根据当年响尾蛇改编的。现在,线在回归一下红白机年代的经典! -Still remember the time of the Snake FC games, two cute small snake eating Peas for the adventure, and now Snake Diamondbacks Game is based on adaptation of the year. Now, the lines look at the return of the classic era of red and white machine!
    2022-02-24 11:36:37下载
    积分:1
  • EAN条码字体的解码算法 经常发现用PB的开发人员在问为什么用EAN的字体打出来的条码扫描枪无法扫描 实受EAN的编码规格的限制,EAN的字体是不能直接使...
    EAN条码字体的解码算法 经常发现用PB的开发人员在问为什么用EAN的字体打出来的条码扫描枪无法扫描 其实受EAN的编码规格的限制,EAN的字体是不能直接使用的,EAN13的编码规格就不 多说了,下面给出两个函数可把条码转换为EAN字体可识别的字符串(分别对应EAN13和EAN8两种编码)-EAN barcode font decoding algorithms are often found with the development of PB in the question why the fonts EAN bar code scanning to fight out of the gun can not scan a matter of fact by the EAN coding specification limit, EAN fonts can not be directly used, EAN13 of coding specifications do not say, and given the following two functions can be converted to EAN barcode fonts can be identified by the string (corresponding to two coding EAN13 and EAN8)
    2023-08-22 05:55:03下载
    积分:1
  • Reversi game with VC++ Realize, so easy to download to play
    黑白棋小游戏,用VC++实现,方便简单,下载即可玩-Reversi game with VC++ Realize, so easy to download to play
    2022-03-03 04:29:15下载
    积分:1
  • 一个文字游戏,比较适合新手使用。 游戏内容主要包括地图,文件读写,行走,物品购买,战斗等....
    一个文字游戏,比较适合新手使用。 游戏内容主要包括地图,文件读写,行走,物品购买,战斗等.-A game of words, more suitable for novice use. The game includes maps, documents to read and write, walk, buy items, fighting and so on.
    2023-06-20 07:55:03下载
    积分:1
  • ZOJ2617,请先将.rar改成.cc/.cpp再运行
    ZOJ2617,请先将.rar改成.cc/.cpp再运行-ZOJ2617, you will. Rar into .cc/.cpp re-run
    2022-03-22 12:57:17下载
    积分:1
  • 多台计算机在研究中,看它实现
    好多计算机方面的研究 与 实现 大家看看吧 -many computers in the study and look at it to realize
    2023-04-01 02:30:03下载
    积分:1
  • Hirose_fpc_hf23
    Hirose_fpc_hf23 Hirose_fpc_hf23 Hirose_fpc_hf23 Hirose_fpc_hf23
    2022-08-17 20:09:23下载
    积分:1
  • 使用LabVIEW编写的一个计算器程序。计算器完成计算…
    使用LabVIEW编写的一个计算器程序。 计算器能完成的运算: 加减乘除,求平方,求立方,求自然对数,求以10为底的对数,求阶乘求正弦余弦正切值,符号取反 能完成的操作:角度与弧度的切换,退格,清零 缺点:由于显示使用的是数值类型,所以无法实现小数输入;只能进行十进制的计算,不支持其它进制,统计功能未实现-LabVIEW prepared to use a calculator program. Calculator to complete the calculations: addition and subtraction multiplication and division, and square, and cubic, and the natural logarithm, and to 10 for the end of the logarithm, and factorial values for sine cosine tangent, symbols take to complete the operation of the anti: the angle with radian switch, backspace, Clear shortcomings: As the show using a numerical type, it is not possible to realize a small number of input only for the calculation of the metric system, do not support the other band, did not achieve statistical functions
    2023-08-17 06:20:03下载
    积分:1
  • 一个经典的DSP程序库,可以为用户提供常用的DSP程序,使得应用DSP时方便一些...
    一个经典的DSP程序库,可以为用户提供常用的DSP程序,使得应用DSP时方便一些-a classic DSP libraries, which can be used to provide users with a DSP that allows DSP some convenient
    2022-03-15 04:32:13下载
    积分:1
  • 一个画质不错的VB 三维游戏源码
    一个画质不错的VB 三维游戏源码,学习Directx编程超值资料。
    2022-06-03 05:42:11下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载