Is it possible to start an Activity
in the background? I need such an Activity
that can operate in the background and spawn other Activities as needed in response to user commands issued to my Home Screen widget.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Is it possible to start an Activity in the background?
No.
I need such an Activity that can operate in the background and spawn other Activities as needed in response to user commands issued to my Home Screen widget.
Your AppWidgetProvider
can "spawn other Activities as needed in response to user commands issued to my Home Screen widget", assuming that by "user commands" you mean "clicks".