Android工作室如何创建罗盘指向朝拜的方向 [英] Android studio how to create compass pointing qibla direction

查看:158
本文介绍了Android工作室如何创建罗盘指向朝拜的方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我想知道是否有人可以从(当前位置)分享罗盘指向qibla方向的示例请我提前感谢,并希望从您的示例欢呼中学习。

Hello i want to know if anybody can share an example of a compass pointing direction of qibla from (current location ) please i will appreciate it allot thanks in advance and looking to learn from your example cheers.

推荐答案

令人惊讶的问题是,我们在计算机科学的微积分中有一个完整的部分,它只是一个应用于找到方向的简单公式。公式(不作为备注,但可以)从此链接下载 [ ^ ] (我们以前学习的笔记的PDF链接)。



你可以使用上面的公式来获得方向( theta ; 通常),通过co使用Google Maps API或其他一些位置API。



下一步是使用罗盘控件查看屏幕上的详细信息。使用解决方案 Solution 1 Solution 2
Amazing question, we have an entire section in our Calculus in computer science, and it is just a simple formula to apply to find the direction. The formula (isn't available as notes, but) can be downloaded from this link[^] (A PDF link to notes that we used to study).

You can use the above formula, to get the direction (theta; conventionally), pass the co-ordinates using Google Maps API or some other location API.

Next step is to use the compass controls to view the details on the screen. Use the solutions, Solution 1 and Solution 2 for this.


许多建议:https://www.google.com/search?q=android+compass [ ^ ]。


还有:安卓指南针 [ ^ ]。


这篇关于Android工作室如何创建罗盘指向朝拜的方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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