Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Android 中的 Fused Location Provider 会在没有数据连接的情况下工作吗?如果是的话怎么能得到位置。提前告诉你。
这完全取决于您在构建 LocationRequest 对象时设置的内容。如果您设置LocationRequest.PRIORITY_HIGH_ACCURACY,则保证位置是由 GPS 获取的
LocationRequest.PRIORITY_HIGH_ACCURACY