如何防止Android应用程序在主屏幕上创建它的应用程序图标。 [英] How do I prevent an android application to create it's application icon on home screen.

查看:90
本文介绍了如何防止Android应用程序在主屏幕上创建它的应用程序图标。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,开发人员我正在为Android设备开发AR应用程序。我正在使用工具Unity游戏引擎的问题是,我不希望当用户从Playstore安装Android应用程序时,它不会在主屏幕上创建快捷方式图标。



我尝试了什么:



我试图从Android Manifest文件中删除Launcher和Mani Activity但是这样做之后应用程序正确安装,但它没有显示打开选项。

Hello, Developers I am working on an AR application for android device. and i am using the tool "Unity Game Engine" the problem is that I don't want that when user install the android app from playstore it will not create shortcut icon on home screen.

What I have tried:

I have tried to delete Launcher and Mani Activity from Android Manifest file but after doing that application installed properlly but it does not show open option.

推荐答案

您希望用户如何打开您的应用程序?如果您不想显示图标,那么没有启动器活动是正确的方法。



例如,如果您想允许用户通过打开txt文件打开你的应用程序,你可以在你的清单中添加一个意图过滤器:



How do you want users to be able to open your application? If you don't want to show an icon, then not having a launcher activity is the correct way to do it.

For example if you want to allow users to open your application via opening a txt file, you could add an intent filter inyour manifest:

<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="text/*" />
</intent-filter>


这篇关于如何防止Android应用程序在主屏幕上创建它的应用程序图标。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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