When installing applications from the Play Market to Android, shortcuts are automatically created on the main screen if there is space.

So this is the question: are they created automatically or should it be programmed in the application somehow?

    1 answer 1

    Yes, this is specified in the application manifest. As a rule, applications have a main window (Activity). Activity, in turn, is specified in the application manifest (AndroidManifest.xml). In the manifest, the parameters of all application activities are set. If you have ever seen the contents of a manifest, you may have noticed the following:

    <activity android:name=".StartPoint" android:configChanges="screenSize|orientation" android:windowSoftInputMode="stateHidden" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> 

    Note the nested intent-filter config tag, which indicates the category

    android.intent.category.LAUNCHER

    It is thanks to him that so-called "labels" appear.

    • one
      Yes, I know all this, I just did not know that it is thanks to this line that a label appears, now I know, thanks. - Belial