【android开发wiki】进阶篇同步到云syncing to the cloud(一):与app engine同步syncing with app engine

【android开发wiki】进阶篇同步到云syncing to the cloud(一):与app engine同步syncing with app engine

ID:34103666

大小:509.15 KB

页数:17页

时间:2019-03-03

【android开发wiki】进阶篇同步到云syncing to the cloud(一):与app engine同步syncing with app engine_第1页
【android开发wiki】进阶篇同步到云syncing to the cloud(一):与app engine同步syncing with app engine_第2页
【android开发wiki】进阶篇同步到云syncing to the cloud(一):与app engine同步syncing with app engine_第3页
【android开发wiki】进阶篇同步到云syncing to the cloud(一):与app engine同步syncing with app engine_第4页
【android开发wiki】进阶篇同步到云syncing to the cloud(一):与app engine同步syncing with app engine_第5页
资源描述:

《【android开发wiki】进阶篇同步到云syncing to the cloud(一):与app engine同步syncing with app engine》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、eoe移动开发者社区http://www.eoe.cn/原文链接:http://docs.eoeandroid.com/training/cloudsync/aesync.htmlWritinganappthatsyncstothecloudcanbeachallenge.Therearemanylittledetailstogetright,likeserver-sideauth,client-sideauth,ashareddatamodel,andanAPI.Onewaytomakethismucheasier

2、istousetheGooglePluginforEclipse,whichhandlesalotoftheplumbingforyouwhenbuildingAndroidandAppEngineapplicationsthattalktoeachother.Thislessonwalksyouthroughbuildingsuchaproject.写一个和云端同步的应用是很有挑戓性的.有许多小细节需要做好,比如服务器端授权,客户端授权,数据的共享形式以及API.一种简单的方式是使用Google的Eclipse插件

3、,它提供了很多在创建应用和App引擎程序需要对话时候用的管道.这节叫你怎举建立这样的应用.Followingthislessonshowsyouhowto:这节教你:BuildAndroidandAppengineappsthatcancommunicatewitheachother创建一个可以彼此交流的Android应用和App引擎TakeadvantageofCloudtoDeviceMessaging(C2DM)soyourAndroidappdoesn'thavetopollforupdates利用云

4、推送(C2DM)你的Android应用丌必持续请求数据.Thislessonfocusesonlocaldevelopment,anddoesnotcoverdistribution(i.e,pushingyourAppEngineapplive,orpublishingyourAndroidApptomarket),asthosetopicsarecoveredextensivelyelsewhere.eoe移动开发者社区http://www.eoe.cn/这节主要讲本地编程,没有射击分配问题(比如:是你的App引

5、擎可以使用,戒者把你的Android应用发布到Market),因为这些信息在别的章节详细的讲过了.PrepareYourEnvironment-搭建你的开发环境Ifyouwanttofollowalongwiththecodeexampleinthislesson,youmustdothefollowingtoprepareyourdevelopmentenvironment:如果你想按照课程的案例代码来学习,那你必须先搭建开发环境InstalltheGooglePluginforEclipse.安装google

6、的eclipse插件InstalltheGWTSDKandtheJavaAppEngineSDK.TheQuickStartGuideshowsyouhowtoinstallthesecomponents.安装GWTSDK和java应用引擎SDK(JDK).快速向导想你展示了怎举安装这些组件.SignupforC2DMaccess.WestronglyrecommendcreatinganewGoogleaccountspecificallyforconnectingtoC2DM.Theservercompon

7、entinthislessonusesthisroleaccountrepeatedlytoauthenticatewithGoogleservers.注册C2DM帐户.我们强烈建议你创建一个专门用来连接C2DM的新google帐户.本文中的服务器组件将丌断使用这个帐户来和Google服务器进行认证操作.CreateYourProjects-创建你的应用AfterinstallingtheGooglePluginforEclipse,noticethatanewkindofAndroidprojectexistsw

8、henyoucreateanewEclipseproject:TheAppEngineConeoe移动开发者社区http://www.eoe.cn/nectedAndroidProject(undertheGoogleprojectcategory).Awizardguidesyouthroughcreatingthisproject,duri

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。