I would like to create an apps with backend service in kinvey. Previously i use Parse.com as my backend service, due to Parse.com is going to stop their service, so i need to consider another mbaas.
i read many reference in internet like http://devcenter.kinvey.com/android/guides/datastore or github, but i still got no idea how to make a simple saving data to kinvey in android apps.
Parse.com adding data was easy, just create an new Parse Object like
ParseObject object = new ParseObject("booking_details");
object.put("username", struser);
Can anyone with experience in Kinvey android apps development give me a short tutorial about saving data? thank in advance!
It's not that different with Kinvey. But, you must define a java class to model your data first. Kinvey records also always include three meta-data fields: a primary key (_id) and _kmd/_acl to store timestamps and ACLs. So something like this:
In this example, I did not actually add the "username" field to the class. But you can, just like the "String _id" field. And add getter/setters for it in your class. But if you like to work it the easy way, and follow the Parse example, you can add dynamic fields, like this:
Then, first link a Kinvey collection to a local "AppData" object:
and save your "object" to Kinvey:
(for a full syntax, see the devcenter)