I am new to this environment and trying to explore while doing this task.
开发者_如何学GoDescription: The client application should display a textbox of any kind, and a submit button of any kind.
Assumptions: The server should be written in Google Application Framework and deployed online in a Google Application Framework account.
All in all, this is not an easy task.
First read tutorials on all your basic technologies: AppEngine and Android. There are plenty around. You should know how to make a text box on Android and handle click events.
Then to post some data to AppEngine from Android you'll need:
The hardest part - user authentication. Three options:
- Your own username/passwords. You need a signup/login pages on AppEngine and at least a login page on Android. You also need a email confirmation.
- OpenID. Easy to setup on AppEngine. Hard to do on Android: Webservice credentials - OpenID/Android AccountManager?
- OAuth. Easy on Appengine. Pretty easy on Android. Requires Google account on Android phone and access to it (app privileges - not all people like this).
REST service on AppEngine. Use Resteasy. And GSON for JSON conversion.
REST client on Android. Example, video. Also use GSON.
精彩评论