I want to know the way by which I can send a SharedPreference file as a parameter to my SOAP web service. I plan to use ksoap. My SharedPreference file basically will contain checked values of checkbox that I plan to implement in one of the activities of my project.
On the server side, after I send the file over the web service I need to insert every checked value the file contains in a database column that I have made.
I also need to delete that file, once the task is accomplished since I do no plan to store any data on my phone.
Can anyone who has come across such a situation tell me how to go about implementing a code for this? I know how to do a SOAP web service call. I just need to know the way to send the SharedPreferences file and in what type are the contents stored in that file?
You can use SharedPreferences#getAll() to obtain a map of all the shared preferences, then put it in the web service in whatever format you like.