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 が判断した場合、Android はプロセスを終了します。
サービス (またはアクティビティ) がレシーバーをリークするのは悪い形です。