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:launchMode="singleTask/singleInstance" 在活动中。