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.
getSpeed()が0.0を返すという質問をたくさん見ましたが、実際には機能しますか?または、hasSpeed()は常にfalseを返しますか、それとも特定の電話専用ですか?
はい、少なくともGPSと、これまで使用していたデバイス(主にHTCとSamsung)で動作します。
単一の場所を提供している場合、エミュレーターで速度を得ることができません。NMEAデータストリームをエミュレーターに提供した場合でも、速度は0.0でした。ただし、実際のデバイスでは正常に動作します。