dev
dev

Reputation: 11309

Is a new Android Application instance created for components running in a new process?

If I start a component (say a Service) in a new process (using android:process), will a new instance of Application be created, or the same Application will be used across multiple processes?

If one Application instance is shared by multiple processes, can I safely call MyApplication.myInstanceMethod()- or do I need some IPC mechanism?

Upvotes: 0

Views: 31

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006614

will a new instance of Application be created

Yes.

or the same Application will be used across multiple processes?

No.

Upvotes: 2

Related Questions