I have a project that uses Android application as client. Here from android app I am sending some data to webservice then depends upon server response I am going to delete the data in local database(SQLite) which are sent to server.
After sending data to webservice from Android app in between processing and sending response if the client lost the connection, I just want to cancel the running process and role back all the transactions which already done for that session. Because before sending response to the client if it lost connection, it will send the data again, which will duplicate the data.
How to know whether client lost the connection or not while processing the request?
Regards,
Srikanth D.