【发布时间】:2015-01-19 19:46:14
【问题描述】:
我想制作一个指南针应用程序,它显示方向以及朝拜(MAKKAH)的方向。我已经安装了许多指南针应用程序,但没有应用程序在我的设备上运行。我有三星 Glaxy Core2。请给我任何解决方案或想法来开发此类应用程序并在我的设备上进行测试。 我的设备可以支持这个应用吗???
【问题讨论】:
标签: android android-activity directions compass
我想制作一个指南针应用程序,它显示方向以及朝拜(MAKKAH)的方向。我已经安装了许多指南针应用程序,但没有应用程序在我的设备上运行。我有三星 Glaxy Core2。请给我任何解决方案或想法来开发此类应用程序并在我的设备上进行测试。 我的设备可以支持这个应用吗???
【问题讨论】:
标签: android android-activity directions compass
您可以列出设备支持的传感器:
private SensorManager mSensorManager; ...
mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);
List<Sensor> deviceSensors = mSensorManager.getSensorList(Sensor.TYPE_ALL);
这样您就可以了解支持哪种类型的传感器,以及哪种传感器足以制作指南针。
http://developer.android.com/guide/topics/sensors/sensors_overview.html
【讨论】: