简体   繁体   English

将应用启动图标添加到主屏幕

[英]Adding app launch icon to the home screen

I would like to place the app launch icon on the home screen once the user installs my android app. 用户安装我的Android应用后,我想在主屏幕上放置应用启动图标。 This should be done even if the user does not open the app. 即使用户没有打开应用程序,也应这样做。 I have tried adding "category android:name="android.intent.category.HOME" in the manifest file for my main activity. But this does not work. Any pointers on how solve this issue? 我已经尝试在清单文件中为我的主要活动添加“ category android:name =“ android.intent.category.HOME”。但这是行不通的。关于如何解决此问题的任何指针?

Thanks Srao 谢谢Srao

I think this would be enough: 我认为这就足够了:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 每次单击主屏幕上的应用程序图标时,启动应用程序启动屏幕 - launch a app splash screen everytime we click a app icon from home screen Android隐藏的应用程序图标出现在主屏幕上 - Android hidden app icon appear on home screen 科尔多瓦android应用程序不显示主屏幕上的图标 - Cordova android app not showing icon on home screen 主屏幕点击事件上的应用程序图标 - app icon on click event from home screen 应用程序图标未显示在应用程序中(在主屏幕上) - App icon does not display in applications (on home screen) 在主(主)屏幕默认设置应用程序图标 - Setting app icon on home(main) screen default 使用LauncherShortcuts在主屏幕上显示Android App图标 - Android App Icon on Home Screen using LauncherShortcuts 将意图类型添加到 android flutter 清单会导致主屏幕中缺少应用程序图标 - Adding intent type to android flutter manifest leads to missing app icon in home screen 从App2启动App1,然后按主屏幕按钮到主屏幕,然后通过按图标再次打开App1,为什么onCreate被调用? - Launch App1 from App2,then press home button to the home screen,and open App1 again by press icon,why onCreate get called? Android 主屏幕应用程序图标与不需要的迷你图标徽章 - Android Home Screen App Icon With Unwanted Mini-Icon Badge
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM