0

I want to keep android application run in background not in foreground when it launched. For Example, like Android Settings and Android Keyboard. Only Running Process List in display this application. Actually, this application is running in background and user can't display it in foreground.

4

1 回答 1

1

无论您想对您的应用程序做什么,如果您希望它在后台运行并且在不再显示时不会被破坏,您必须使用 Service。

这是解释它的 Android 开发者网站:http:
//developer.android.com/guide/components/services.html

这是一个很好的教程:
http ://www.vogella.com/articles/AndroidServices/article.html

如果您的代码不适用于服务,则可能不是服务的错,而是您的代码的错,您应该发布另一个问题来准确解释您的问题。

于 2013-03-21T11:29:21.963 回答