获取海拔在应用发明 [英] Get Altitude in App Inventor

查看:253
本文介绍了获取海拔在应用发明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用App Inventor中。如何获得地方使用LocationSensor工作?我使用的是Nexus 4,我成功获得纬度和长期的。

I'm using App Inventor. How do get altitude to work using LocationSensor? I'm using a Nexus 4 and I'm successful of getting Lat and Long.

我检查,如果 LocationSensor.HasAltitude 键,它返回

I checked if LocationSensor.HasAltitude and it returned false.

推荐答案

确认,GPS是您的设备和GPS启用可作为供应商,然后设置 LocationSensor.ProviderName = GPS ,也锁定提供商: LocationSensor.ProviderLocked = TRUE 搜索结果
这个片段可以帮助 http://puravidaapps.com/snippets1.php#gps

make sure, gps is enabled on your device and gps is available as provider, then set LocationSensor.ProviderName = gps, also lock the provider: LocationSensor.ProviderLocked = true

this snippet might help http://puravidaapps.com/snippets1.php#gps

这篇关于获取海拔在应用发明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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