Which thread runs ContentProvider?
If I call to a ContentProvider from a Activity, which thread is ContentProvider running in? E.g. What happens if the Activity is killed and a query is executing in the ContentProvider? Say that you have a slow network query f.ex. If you mean the normal use case of using a ContentResolver to call a ContentProvider then here is what happens according to the best of my knowledge: I am assuming in this example that your ContentProvider lives in one process and your Activity in another process. If the ContentProvider has not been created then the onCreate() method is called using the "main" thread