When does Application's onCreate() method get called?

后端 未结 3 1458
傲寒
傲寒 2020-12-01 04:50

In my Android application, I have a DefaultApplication class which extends android.app.Application, and in its onCreate() I bind some

3条回答
  •  一生所求
    2020-12-01 05:43

    Note that if any service is defined to run in other process e.g. with android:process= then Application's onCreate() will be called again for that process.

    For example see Android Application class method onCreate being called multiple times

提交回复
热议问题