如何防止Android应用程序在主屏幕上创建它的应用程序图标。

编程入门 行业动态 更新时间:2024-10-26 04:25:02
本文介绍了如何防止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应用程序在主屏幕上创建它的应用程序图标。

本文发布于:2023-11-23 14:19:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1621747.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   图标   如何防止   屏幕上   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!