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.
按照此处的说明:Android Share Intent,我注意到共享菜单中显示的文本是@string/app_name。有没有办法让它在不更改 app_name 的情况下显示其他文本?如果可能,可以在 xml 或 java 中。
因此,如果我希望我的应用程序显示在那里,那么显示的文本就是 app_name,我想在不更改我的应用程序名称的情况下更改该文本。
添加android:label到<intent-filter>您的活动说它支持的地方ACTION_SEND。
android:label
<intent-filter>
ACTION_SEND