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.
私はたくさん検索しましたが、アラームマネージャーは常にサービスを直接使用するのではなく、放送受信機の助けを借りて開始することが常にわかりました。なぜそうなのか知りたいのですが、教えてください
保留中のインテント アラームに応じて、マネージャはサービス、ブロードキャスト レシーバ、またはアクティビティを開始できます。
getActivity(Context, int, Intent, int), getBroadcast(Context, int, Intent, int), getService(Context, int, Intent, int);
保留中のインテントの方法のいずれかを使用でき、アラームはアクティビティまたは受信者またはサービスのいずれかを促します。