不会显示活动/图标/视图的android应用 [英] android app that doesnt display an activity/icon/view

查看:72
本文介绍了不会显示活动/图标/视图的android应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我正在尝试编写一个将在任务管理器中隐藏其主窗口/状态并在启动时启动的android应用程序.

我可以让它在启动时启动,但不能隐藏自身,对此有任何想法/指针吗?

该应用程序基本上是一项服务,用于将我的word文档和图片定期备份到我的Web服务器,我只想运行一次然后将其保留,但是我不希望设备上的所有图标等.这可能吗??非常感谢任何帮助.

Hello all!!

I am trying to code an android app that will hide its main window/presence on task manager and will boot at start up.

i can get it to boot at startup but not hide itself, any ideas/pointers on this??

The app is basically a service to backup my word docs and pictures periodically to my web server, i want to just run it once and then leave it but i don''t want all the icons etc. on my device. is this possible?? Any help greatly appreciated.

推荐答案

如果您从清单文件中的活动中删除启动器意图过滤器,则不会在应用程序中为您的应用程序创建启动器.应用抽屉.

因此删除这些行:

If you remove the launcher intent filter from your activity in the manifest file then it won''t create a launcher for your application in the app drawer.

So removing the lines:

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>




我不确定,但我想默认情况下不会将其隐藏在任务管理器中,因此当您的应用程序运行时,您需要手动告诉任务管理器忽略该服务.

那是你的追求吗?




I am unsure but I imagine that won''t hide it from task managers by default so when your application is running you would need to manually tell your task manager to ignore the service.

Is that what you were after?


这篇关于不会显示活动/图标/视图的android应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆