I have a ContentProvider which is declared in the Manifest, when is it really created ? When the application is launched but before launching the first activity ? When the first query/update/insert is done ? When ?
When the first query/update/insert is done. Check this
Update: android documentation is invalid in this regard. Valid behaviour is descirbed here https://stackoverflow.com/a/11858493/657487
ContentProvider created when app starts. So, it might be wise to make onCreate() lightweight