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.
onResume と onPause を使用してリスナーを場所に実装する最良の方法を見つけようとしています。onPauseでオフにしてonResumeで再接続するのは最善ではありません。しかし、アプリケーションの実行中に GPS をオンにしておくことだけが必要な場合は、切断と再接続を繰り返します。ホームが押されると (または別のアプリケーションが中断されると)、GPS をオフにしてバッテリーを節約できます。
何か案は?
ありがとう。