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?
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?
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.
Source: https://ru.stackoverflow.com/questions/403993/
All Articles