I need to build Android application using Java which is able to send request to read or write some data to "database" or similar data store on google web server (using GWT technology). Android app should be able to authenticate user with Google Account, send request to server to add data to database on server, receive data form server. I would like to know what is the best approach and architecture I should use? What mechanism should I use to get data response over network (RPC, GET request)? What should I put on server side (servlet, ...) ? There is example how to build gwt app: which run 1. javascript in browser 2. servlet, service, serviceImpl, serviceAcynch, etc... I think this is no use for my app because I need to directly get and send data to/from server.
我需要与GWT服务器进行数据交换,以便获得/更新我的谷歌地图电文坐标。 因此,我需要使用海底客户和GWT之间的数据交换机制。
Why do I need this on android? I have to be able to get GPS position of android device and update data with web server, then display my android device position on map. I need GWT to store, put, return position data (for example to show visited locations). Should it be build as Android native app? How can I update, get data from GWT server?