I've been developing for Android for some time now and currently working with syncing with my server.
Quick introduction: I've read about Sync Adapter and do know its role but I just want to know if it's my best option.
In my app user can click on a button to notify something is important to him. On click I'd like to update the server to keep the data, as well as notify his relatives. My problem comes as follows: The user can click that said button several times switching it on and off so in that case I don't want to open communication with the server each time the user clicks a button, it might not even change state from its previous state.
So my question is: Is sync adapter the right thing for me or should I build my own class to talk to the server that will check that, as well as receive urgent\non-urgent like Volley's. If someone could clarify the exact work of Sync Adapter I'd really appreciate it (Does it do what I stated?)
If something isn't clear i'd be happy to clarify. Thanks in advance.