开发者

Android: How to make application invisible to task managers and in the menu

I would like to develop an application which runs as a background service. Once it gets installed, it can be controlled remotely by control messages. I don't want the application to be shown on the menu or the task list. Any help is appreciated. Any alternate ideas ar开发者_StackOverflow中文版e appreciated as well.. Thank you.


All running services are shown on the running services list under applications. I seriously hope you CAN NOT hide them.

Icons do not need to appear on the main application menu. You can remove the icon from appearing on this menu by not defining an icon/label in your manifest.

Your request sounds sketchy/shady.


Sounds like you want a Remote Service in conjunction with Cloud to Device Messaging or some other push solution. If you want your service to start on boot, register it with a broadcast receiver for android.intent.action.BOOT_COMPLETED.

There's a good tutorial on remote services here: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/RemoteService.html

And cloud-to-device messaging here: http://code.google.com/android/c2dm/index.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜