[英]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.