Why does ContentProvider.onCreate() get called before Application.onCreate()?

前端 未结 2 727

I registered a ContentProvider in AndroidManifest.xml, and the ContentProvider.onCreate() was called even before the Application.onCreate(). I don\'t understand this behavio

2条回答
  •  佛祖请我去吃肉
    2020-12-09 08:26

    According a Google's issue it's how this should work (although documentation is wrong).

    There's another question that have a workarround that can help you.

提交回复
热议问题