In Android, when a service and activity use the same static class, is the class “created” twice?

This is just a general question of knowledge - out of curiosity ...

In Android, when an activity and a service use the same static class (for example, singleton), does the service end up with its own “version” of the class?

For example, I put all my global constants in a static class. Are these memory cells created once for actions and again for individual processes such as a service?

+3
source share
1 answer

. , . , , , , . , .

+2

All Articles