Sometimes if you want our application to create multiple shortcuts on the desktop, we can declare the corresponding activity in the Manifest.xml file.
<application android:icon= "@drawable/icon" android:label= "@string/app_name" Android:theme= "@android: style/ Theme.light "> <activity android:name=". Pulltorefreshlistactivity "android:label=" PtR ListView "> <intent-filter> <action android:name=" Android.intent.action.MAIN "/> <category android:name=" Android.intent.category.LAUNCHER "/> </ intent-filter> </activity> <activity android:name= ". Pulltorefreshgridactivity "android:label=" PtR GridView "> <intent-filter> <action android:name=" Android.intent.action.MAIN "/> <category android:name=" Android.intent.category.LAUNCHER "/> </ intent-filter> </activity> <activity android:name= ". Pulltorefreshexpandablelistactivity "android:label=" PtR expandablelistview "> <intent-filter> <action
Android:name= "Android.intent.action.MAIN"/> <category android:name= "Android.intent.category.LAUNCHER"/> </intent-filter> </aCtivity> <activity android:name= ". Pulltorefreshwebviewactivity "android:label=" PtR webview "> <intent-filter> <action android:name=" Android.intent.action.MAIN "/> <category android:name=" Android.intent.category.LAUNCHER "/> </ Intent-filter> </activity> </application>
Code such as, this is seen from the Pulltorefresh demo, because our general application installation is completed, will only generate a shortcut, but this application generated four, see manifest.xml only found this thing, record ①, may be useful.
Friends who want to help develop Android apps that need this feature.