Reputation: 141
I need to build an android application that communicates with a REST WebService. All operations will be performed online and there are few objects/data that need to be stored in the device memory. I run through RESTDroid but it seems to be "too much" for my needs. Should I store the objects in the file system/sd card? What are the advantages/disavantages of this approach?
Thanks.
Upvotes: 0
Views: 108
Reputation: 4522
you can look into this tutorial in which he explained so beautifully to store SMALL RESTful data
Upvotes: 1
Reputation: 3305
If you have many same objects, that you receive from your web service, you should use SQLite database. If you have few objects you can serialize it and store in file or serialize it as JSON for example and store in SharedRreferences. I dont know the best way for you, but for me it would be SQLite database or SharedPreferences.
Good luck!
Upvotes: 1