How can an Android application have more than one process?

后端 未结 2 1603
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-08 22:49

I have developed an Android application that has 1 process and 2 services. But I noticed that \"Google Services\" has 2 processes and 1 service. How can it have 2 processes?

2条回答
  •  温柔的废话
    2020-12-08 23:13

    You can specify android:process=":remote" in your manifest to have an activity/service run in a seperate process.

    The "remote" is just the name of the remote process, and you can call it whatever you want. If you want several activities/services to run in the same process, just give it the same name.

    
    

提交回复
热议问题