If your device has a special sensor, then you can use an electronic compass. Don't forget to calibrate it by doing eight figure-eight moves. There are several compass designs to choose from, choose the one you like.
| 母公司 | |||
|---|---|---|---|
开发框架2 | |||
Android 官方兼容支持库 | 跨平台框架 | Android | 谷歌 |
Google 核心 Java 工具库 | 开发工具 | Guava | 谷歌 |
网络库1 | |||
Google 图片加载库 | 图片加载 | Glide | bumptech |