开发者

Android Simple client app sending text to google cloud datastore ? example, hints

I am new to this environment and trying to explore while doing this task.

开发者_如何学Go

Description: 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:

  1. 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).
  2. REST service on AppEngine. Use Resteasy. And GSON for JSON conversion.

  3. REST client on Android. Example, video. Also use GSON.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜