I have Content provider and sync adapter in my project. In my project first i'm going to fetch data from server and then i'm storing it in my database sqlite.
Now i'm coming to my issue. Actually i want to change the server data according to the data modified in the sqlite.
For example: if i delete data in my database i also want to delete data in my server database. For this purpose my sync adapter should know what operation is performed like delete or insert.
Another way of doing this is comparing my whole local sqlite database with the data in the server when the sync adapter is invoked.
I don't want that approach. Is there any way to know who is invoking sync adapter or what operation is performed in content provider from sync adapter?