开发者

smartphone - pressure sensors

I am not very clear whether the pressure sensor available in android is used to measure the atmospheric pressure or the pressure on the touch screen? (getAltitude()/ event.getPressue() )

Do we have any such pressure sensor in iO开发者_如何学PythonS which could give us values of atmospheric/finger pressure?

Any help appreciated,


event.getPressure() measures finger pressure on the touchscreen: http://developer.android.com/reference/android/view/MotionEvent.html#getPressure(int)

getAltitude will give you your geo altitude: http://developer.android.com/reference/android/location/Location.html

I don't know about iOS.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜