一个Android应用程序中存在两个进程。真?

时间:2011-07-07 11:55:58

标签: android process

  

可能重复:
  How can an Android application have more than one process?

我很难得到答案。 是否可以在一个Android应用程序中拥有多个进程?有人可以帮帮我吗?你能举个例子吗?我们怎样才能在一个Android应用程序中实现两个进程?

非常感谢。

1 个答案:

答案 0 :(得分:1)

是的,有可能。 例如,查看SERVICE类。

android:process = "String" The name of the process where the service is to run. 

这将在单独的过程中启动服务

相关问题