Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个应用程序,我需要在应用程序中提供一个可访问的附加图标,以便从同一个应用程序启动活动。
因此,当应用程序安装时,它会在应用程序列表中显示两个图标,一个启动应用程序的图标已经存在,如何拥有另一个图标,然后如何从该图标/快捷方式启动所需的活动。
将此添加到要在启动器中显示的活动标记内的清单文件中
<intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter>