资源描述:
《[Android.in.Practice(2011)].Charlie.Collins.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、CharlieCollinsMichaelGalpinMatthiasKäpplerINPRACTICEIncludes91TechniquesMANNINGAndroidinPracticeAndroidinPracticeCHARLIECOLLINSMICHAELD.GALPINMATTHIASKÄPPLERMANNINGSHELTERISLANDForonlineinformationandorderingofthisandotherManningbooks,pleasevisitwww.m
2、anning.com.Thepublisheroffersdiscountsonthisbookwhenorderedinquantity.Formoreinformation,pleasecontactSpecialSalesDepartmentManningPublicationsCo.20BaldwinRoadPOBox261ShelterIsland,NY11964Email:orders@manning.com©2012byManningPublicationsCo.Allrightsr
3、eserved.Nopartofthispublicationmaybereproduced,storedinaretrievalsystem,ortransmitted,inanyformorbymeanselectronic,mechanical,photocopying,orotherwise,withoutpriorwrittenpermissionofthepublisher.Manyofthedesignationsusedbymanufacturersandsellerstodist
4、inguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthebook,andManningPublicationswasawareofatrademarkclaim,thedesignationshavebeenprintedininitialcapsorallcaps.Recognizingtheimportanceofpreservingwhathasbeenwritten,itisManning’sp
5、olicytohavethebookswepublishprintedonacid-freepaper,andweexertourbesteffortstothatend.Recognizingalsoourresponsibilitytoconservetheresourcesofourplanet,Manningbooksareprintedonpaperthatisatleast15percentrecycledandprocessedwithouttheuseofelementalchlo
6、rine.ManningPublicationsCo.Developmenteditor:CynthiaKane20BaldwinRoadCopyeditor:BenjaminBergPOBox261Typesetter:GordanSalinovicShelterIsland,NY11964Coverdesigner:MarijaTudorISBN9781935182924PrintedintheUnitedStatesofAmerica12345678910–MAL–161514131211b
7、riefcontentsPART1BACKGROUNDANDFUNDAMENTALS......................................11■IntroducingAndroid32■Androidapplicationfundamentals403■Managinglifecycleandstate73PART2REALWORLDRECIPES......................................................994■Getting
8、thepixelsperfect1015■ManagingbackgroundtaskswithServices1556■Threadsandconcurrency1897■Storingdatalocally2248■Sharingdatabetweenapps2669■HTTPnetworkingandwebservices29510■Locationiseverything33411■Appealtothesensesusingmultimedia36312■2Dand3Dd