Android技术论文翻译指南.docx
《Android技术论文翻译指南.docx》由会员分享,可在线阅读,更多相关《Android技术论文翻译指南.docx(21页珍藏版)》请在第一文库网上搜索。
1、App1icationFundamenta1sAndroidapp1icationsarewrittenintheJavaprogramming1anguage.Thecompi1edJavacodea1ongwithanydataandresourcefi1esrequiredbytheapp1icationisbund1edbytheaapttoo1intoanAndroidpackage,anarchivefi1emarkedbyan.apksuffix.Thisfi1eisthevehic1efordistributingtheapp1icationandinsta11ingitonm
2、obi1edevices;itsthefi1eusersdown1oadtotheirdevices.A11thecodeinasing1e.apkfi1eisconsideredtobeoneapp1ication.Android应用基础:Android应用程序是通过java语言开发的,通过绑定某些应用所需要的东西,例如:编译的JaVa代码,加上数据和某些资源文献,使用一种aptH工具将所有H东西封装成一种android包,这个文献的J文献后缀是.apk。这个文献是分发并安装应用程序到移动设备B载体,是顾客获得该应用程序所需要B下载B文献。App1icationComponentsAcent
3、ra1featureofAndroidisthatoneapp1icationcanmakeuseofe1ementsofotherapp1ications(providedthoseapp1icationspermitit).Forexamp1e,ifyourapp1icationneedstodisp1ayascro11ing1istofimagesandanotherapp1icationhasdeve1opedasuitab1escro11erandmadeitavai1ab1etoothers,youcanca11uponthatscro11ertodothework,rathert
4、handeve1opyourown.Yourapp1icationdoesn,tincorporatethecodeoftheotherapp1icationor1inktoit.Rather,itsimp1ystartsupthatpieceoftheotherapp1icationwhentheneedarises.Forthistowork,thesystemmustbeab1etostartanapp1icationprocesswhenanypartofitisneeded,andinstantiatetheJavaobjectsforthatpart.Therefore,un1ik
5、eapp1icationsonmostothersystems,Androidapp1icationsdonthaveasing1eentrypointforeverythingintheapp1ication(nomain()function,forexamp1e).Rather,theyhaveessentia1componentsthatthesystemcaninstantiateandrunasneeded.Therearefourtypesofcomponents:ActivitiesAnactivitypresentsavisua1userinterfaceforonefocus
6、edendeavortheusercanundertake.Forexamp1e,anactivitymightpresenta1istofmenuitemsuserscanchoosefromoritmightdisp1ayphotographsa1ongwiththeircaptions.Atextmessagingapp1icationmighthaveoneactivitythatshowsa1istofcontactstosendmessagesto,asecondactivitytowritethemessagetothechosencontact,andotheractiviti
7、estoreviewo1dmessagesorchangesettings.Thoughtheyworktogethertoformacohesiveuserinterface,eachactivityisindependentoftheothers.Eachoneisimp1ementedasasubc1assoftheActivitybasec1ass.Anapp1icationmightconsistofjustoneactivityor,1ikethetextmessagingapp1icationjustmentioned,itmaycontainsevera1.Whattheact
8、ivitiesare,andhowmanytherearedepends,ofcourse,ontheapp1icationanditsdesign.Typica11y,oneoftheactivitiesismarkedasthefirstonethatshou1dbepresentedtotheuserwhentheapp1icationis1aunched.Movingfromoneactivitytoanotherisaccomp1ishedbyhavingthecurrentactivitystartthenextone.Android有四大应用程序组件AndroidB一种很重要B中
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Android 技术 论文 翻译 指南