Reputation: 17783
I am making HttpPost requests to distant server. When the server is inaccessible, I want to store prepared request (it has form of HttpPost) into SharedPreferences or database. Question is, do you know how to store HttpPost into String and save it? Up to now, I have not been able to transfer HttpPost into String. Do you have any ideas?
Thanks
Upvotes: 0
Views: 242
Reputation: 1448
make a class that implements Serializable, store all the necessary data for the HttpPost in there and the persist this class using internal storage.
Upvotes: 1