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.intent.action.TIME_TICK
ブロードキャストレシーバーを作成し、毎秒必要に応じて処理します。
ヘルプリンク
Android ではアプリケーションを閉じることはできません。UI 全体を閉じるか、サービスなどのアプリケーションの背景を作成する必要があります。
幸運を!