简体   繁体   中英

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. 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?

Thanks 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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM