问题描述
我正在开发一个应用程序,因此需要使它能够在单独的历史记录和堆栈中启动活动,如您在照片中所见,电话的应用程序启动了该活动以进行独立工作的呼叫,并且当我想要查看最新的应用程序时,甚至可以观察到这一点.
I'm working on an application and I need to make it possible to launch an activity in a separate history and stack as you can see in the photo that the application of the telephone starts the activity to make calls that works independently and even this can be observed when I want See recent apps.
推荐答案
在您的应用程序清单文件中
In the Manifest file for your application
在< activity>中,元素
In the <activity> element
添加属性:android:process =. ProcessName "
Add an attribute: android:process=".ProcessName"
这将导致特定活动在新流程中启动.
This will cause that particular activity to be launched in a new process.
有关更多详细信息,请在此上搜索"android:process"页面
For more details, search for "android:process" on this page
这篇关于如何启动对应用程序的独立活动,以及如何通过电话应用程序启动活动以进行呼叫?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!