Every Activity in Android is a Process,or One Application is one process

前端 未结 4 686
野的像风
野的像风 2020-12-02 19:22

In this page, http://androidapps.org.ua/androidintro_ipc.html , intent switching between activities is described as Inter Process Communication. Now I am confused whether e

4条回答
  •  渐次进展
    2020-12-02 19:51

    No the activities of one application don't run on a different process each. And actually, even different applications built by the same developer (if the same certificate is used for all applications) could run in the same process!

    As the documentation says:

    Application modularity – The Android system allows applications that are signed by the same certificate to run in the same process, if the applications so requests, so that the system treats them as a single application. In this way you can deploy your application in modules, and users can update each of the modules independently if needed.

提交回复
热议问题