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.
この方法で緯度と経度を保存する最良の方法を知りたいのですがonLocationChanged()。
onLocationChanged()
SharedPreferences、またはI * ntent / BroadcastReceiver *を使用していますか?
ありがとう。
public staticすべてのアクティビティがアクセスできるように、(クラス)変数に格納するだけです。SharedPreferencesはやり過ぎだと思います(アプリケーションが強制終了され、後で再起動されたときにこの値が存続する必要がある場合を除きます)。
public static