I finally find a solution but I am not proud of it... My mistake was that I called close() on the wrong SQLiteOpenHelper. So I add a public method to my ContentProvider to get his SQLiteOpenHelper... Next during update I do this:
MyContentProvider cp = (MyContentProvider) context.getContentResolver() .acquireContentProviderClient(CONTENT_URI) .getLocalContentProvider(); if (cp != null) { cp.getOpenHelper().close(); } Is there any clean way to do that? (Except your intelligent merge solution) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en