[翻译]安卓介绍之应用程序原理

[翻译]安卓介绍之应用程序原理

ID:34012410

大小:130.00 KB

页数:13页

时间:2019-03-03

[翻译]安卓介绍之应用程序原理_第1页
[翻译]安卓介绍之应用程序原理_第2页
[翻译]安卓介绍之应用程序原理_第3页
[翻译]安卓介绍之应用程序原理_第4页
[翻译]安卓介绍之应用程序原理_第5页
资源描述:

《[翻译]安卓介绍之应用程序原理》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库

1、IntroductiontoAndroidTolearnhowappswork,startwithAppFundamentals.Tobegincodingrightaway,readBuildingYourFirstApp.AndroidprovidesarichapplicationframeworkthatallowsyoutobuildinnovativeappsandgamesformobiledevicesinaJavalanguageenvironment.Thedocumentslistedinthele

2、ftnavigationprovidedetailsabouthowtobuildappsusingAndroid'svariousAPIs.Ifyou'renewtoAndroiddevelopment,it'simportantthatyouunderstandthefollowingfundamentalconceptsabouttheAndroidappframework:安卓提供了一个丰富的应用框架允许你使用java语言环境为不同的移动设备构建创新APP和游戏.这个文档列在左边导航提供了怎样使用安卓各种API建

3、立应用的详细信息.如果你是一个安卓开发的新手,你应该要懂得接下来的安卓应用框架的基础概念.AppsprovidemultipleentrypointsAndroidappsarebuiltasacombinationofdistinctcomponentsthatcanbeinvokedindividually.Forinstance,anindividualactivityprovidesasinglescreenforauserinterface,andaserviceindependentlyperformswor

4、kinthebackground.Fromonecomponentyoucanstartanothercomponentusinganintent.Youcanevenstartacomponentinadifferentapp,suchanactivityinamapsapptoshowanaddress.Thismodelprovidesmultipleentrypointsforasingleappandallowsanyapptobehaveasauser's"default"foranactionthatoth

5、erappsmayinvoke.安卓提供了多个入口点安卓应用是由能被独立调用的离散组件联合构建的.例如,一个独立的activity仅提供一个用户界面,然后一个service独立在后台进行工作.你可以使用一个intent从一个组件启动另一个组件,甚至可以启动另一个app中的组件,例如启动地图app中一个activity用来显示一个地址.这个模型为单个app提供多个入口点而且允许任何app成为其它app可能调用的默认行为.AppsadapttodifferentdevicesAndroidprovidesanadaptive

6、appframeworkthatallowsyoutoprovideuniqueresourcesfordifferentdeviceconfigurations.Forexample,youcancreatedifferentXMLlayoutfilesfordifferentscreensizesandthesystemdetermineswhichlayouttoapplybasedonthecurrentdevice'sscreensize.Youcanquerytheavailabilityofdevicefe

7、aturesatruntimeifanyappfeaturesrequirespecifichardwaresuchasacamera.Ifnecessary,youcanalsodeclarefeaturesyourapprequiressoappmarketssuchasGooglePlayStoredonotallowinstallationondevicesthatdonotsupportthatfeature.安卓提供一个适应性的应用框架,可以让你对不同的设备配置提供独特的资源.例如,你可以为不同屏幕尺寸的设备

8、提供不同的XML布局,让设备上的系统跟据当前屏幕尺寸来决定使用哪个XML布局.如果有任何应用特性需要特定的硬件信息,例如摄像头,你可以在运行时查询设备特性.你也可以在app中定义应用需要的特性,这样一来应用市场像GooglePlayStore就不会允许在不支持该特性的手机上安装此应用了.ApplicationFund

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

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

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