Content provider batch notifications (and transactions ?)
Currently, in our provider implementation, a notification is sent (if something has been inserted/modified/deleted) every time we go into the insert/delete/update method.
But, when feeding a batch to the provider, it usually means that the various batch operations are related (ie. I insert a User and five commentaries this user have written. I put it all in a batch.)
So, for now, the provider will do a notification after every operation where in fact, it would be nicer to notify all the uris called by the batch after all the operations have been done. If we do not, we may have too much refreshes from lists.
Also, I may have found that the transactions are not automatically managed by the provider when doing a batch. Android Calendar application seems to do it manually : http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.2.2_r1/com/android/providers/calendar/SQLiteContentProvider.java#SQLiteContentProvider.insert%28android.net.Uri%2Candroid.content.ContentValues%29