广播和隐藏 Activity android
BroadCast & Hide Activity android
一个应用程序如何在没有任何activity执行的情况下在后台运行。
比如我写的一个我不是activity广播软件的应用是运行ning。
我写的软件没有 activity,但是当我 运行 软件没有 运行 广播时,第一个 运行.
将是一个 activity
因为我的不足activity没有显示给用户申请。
您有想法将它显示给用户吗?
来自 release notes for Android 3.1:
Starting from Android 3.1, the system's package manager keeps track of
applications that are in a stopped state and provides a means of
controlling their launch from background processes and other
applications.
和
Applications are in a stopped state when they are first installed but
are not yet launched and when they are manually stopped by the user
(in Manage Applications).
您应该包含一个可以由用户启动的 Activity,否则您的应用将永远不会退出此停止状态。
一个应用程序如何在没有任何activity执行的情况下在后台运行。 比如我写的一个我不是activity广播软件的应用是运行ning。 我写的软件没有 activity,但是当我 运行 软件没有 运行 广播时,第一个 运行.
将是一个 activity因为我的不足activity没有显示给用户申请。 您有想法将它显示给用户吗?
来自 release notes for Android 3.1:
Starting from Android 3.1, the system's package manager keeps track of applications that are in a stopped state and provides a means of controlling their launch from background processes and other applications.
和
Applications are in a stopped state when they are first installed but are not yet launched and when they are manually stopped by the user (in Manage Applications).
您应该包含一个可以由用户启动的 Activity,否则您的应用将永远不会退出此停止状态。