java - how to fetch data from google app engine datastore in android -
i'm new google app engine , follow it's documentation @ https://developers.google.com/appengine/docs/ carefully.now i've stored data on google app engine store creating web application in eclipse example store first , last name of employee @ gae store like
datastoreservice datastore = datastoreservicefactory.getdatastoreservice(); entity employee = new entity("employee"); employee.setproperty("firstname", "antonio"); employee.setproperty("lastname", "salieri"); date hiredate = new date(); employee.setproperty("hiredate", hiredate); employee.setproperty("attendedhrtraining", true); datastore.put(employee);
and i've deployed project gae want stored data data store in android app. possible that. me appreciated.
thanks!
there different approaches problem. create kind of services, in json format , you'll able interact android app google app engine using http requests. better solution though use google cloud endpoints:
google cloud endpoints consists of tools, libraries , capabilities allow generate endpoints , client libraries app engine backend simplify client access web app. endpoints makes easier create web backend web clients , mobile clients such android or apple's ios.