第一范文网 - 专业文章范例文档资料分享平台

NIIT安卓复习提纲+答案

来源:用户分享 时间:2025/5/24 0:09:30 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

WORD格式

一、 基础:

1.

安卓核心组件有哪些?

、、Activi

ServiceContentprovide

ties rs s 2.安keyfeatu有哪些?

res

Integrabrows、SQLite、

Mediasupport

ted er

Richdevelopmentenvironment 3.安卓用什么数据库? SQLiteDatabase

4.几个流行的移动平台各自的 IDE 是什么?

1.Symbian(QtCreator)2.Android(Eclipse\\And3.BlackBerry(The

roidStudio)

5.Windows(VisualStudio) JavaDevelopmentEnvironment(JDE))4.IOS(Xod

e)

5.R.java 是什么文件?干什么用的?在什么地方?

R.javaisanindexdatabasefile,storetheIDofalltheresourceinapp. R.javalocatedin/gendirectory. 6.

安卓平台架构分为几层?各是什么?

、LibrariesandAndroidruntime 、、Applications

Androidplatformhasafour-layeredarchitecture: Linuxkernel

Applicationframework 7.

a.CreateanewAndroidproject;

b.DesigntheUI,youcanusethecontrolsintoolboxorcodinginthelayout.xmlfile; c.AssociatetheUIwiththeactivity; d.Registertheactivity.

8.Intent 有几个组件?各是干什么用的?哪些组件是必须存在的,哪些是可选的,在

Manifest

BlackBerry

、Broadcastreceives

DVM、、servic、Application Wireless

es

framework、

创建一个UI并运行之,有哪几个步骤?

intentfilter 是如何声明的?

Componentname:Specifythenameofthecomponentthatshouldhandletheintent. Action:Specifytheactionthatneedstobeperformed Data:Specifiesthedatatooperateon.

Category:Specifiesthebehaviourofthetargetapplicationcomponent. Extras:Containsextrasinformationintheformofkey-valuepairsthatmustdeliveredtothecomponentsthathandletheintent.

Flags:Includesflagsthatcontrolvariousaspectsrelatedtoactivatinganewcomponent. 必须存在:Action 可选:Data、Category

IntheManifestfile,intentfilterwasdefinedasfollowing: Intentfilterwasdeclaredintheformoftag

1 专业资料整理

WORD格式

filter>andthetagwascontainedinthetag.

9.Activity

的生命周期有哪些状态?状态转换时调用的方法各是什么?

Running、Paused、Stopped

2 专业资料整理

WORD格式

10. 同一个应用之间Activity互相调用要用什么Intent(隐式、显式?还是什么?)? UseExplicitIntent.

1)ExplicitIntent (指定接收者):ExplicitIntentspecifythenameofthetargetcomponent in ordertoactivate that component.Suchintents oraservice within thesameapplication.

2)ImplicitIntent( 不指定接收者):Implicitintentsareusedtoactivatethecomponentsof otherapplications.Implicitintentsdonotspecifythetargetcomponentbytheir name,componentsadvertisetheircapabilitytodoajobbyusingaintentfilers. 11.什么是DalvikVirtualMachine ?

DVMisarunning-environmentforAndroidapplicationwhichinterpretedAndroidbytecodes atruntime..

12.安卓日志类 Log

于什么输出什么信息?哪些信息只应该在 允许输出?

TheLogclassprovidesfivemethods,suchas: 1.Log.e():usedtologerrors.Forexample 2.Log.w():usedtologwarnings. 3.Log.i():

usedtologinformationalmessagessuchasinformationrelatedtostateof activitiesorservices.

4.Log.d():usedtologdebugmessages,whichcanbeusedfordebugginganapplication. 5.Log.v():usedtologverbosemessages. 开发时输出:debugmessageandverbosemessage 二、核心机制:

1.什么是ContentProvider

:try-catchblock

有几种常用方法?各用开发的时候才

areusedtostart

anactivity

3 专业资料整理

WORD格式

ContentProvidercanhelpapplicationaccessstoragelocations,italsocanstore retrievedatamakingthedatacanbeaccessedtoallapplications.

and

4 专业资料整理

WORD格式

2.什么是BroadcastReceiver

Abroadcastreceiverisacomponentofanapplicationthatrespondstosystem-widebroadcastannouncements.

3.什么是Intent

Intentsaremessagesusedtoactivateapplicationcomponentssuch as,activities,services,andbroadcastreceivers. 4.什么是Service,Service 有哪些状态?

AnAndroidserviceisanapplicationcomponentthatdoesnotprovideanyuserinterfaceandkeepsrunninginthebackground.startedandbound

5. 安卓的资源有哪些类型?各放在什么位置? AnimationResources 文件位置:res/anim/orres/drawable ColorStateListResource 文件位置:res/color/ DrawableResource 文件位置:res/drawable/ LayoutResource 文件位置:res/layout/ MenuResource 文件位置:res/menu/ StringResource 文件位置:res/values/ StyleResource 文件位置:res/values/ MoreResourceTypes 文件位置:res/values/ 6.IPC是什么意思?和

Intent 有什么关系?

IPC(Inter-processCommunication) 7.Broadcast 有哪几种?区别? NormalBroadcasts 、OrderedBroadcasts

NormalBroadcasts :broadcastsaresenttoallinterestedreceiversatthesametimeand the receiversruninanundefinedorderoftenatthesametime.

OrderedBroadcasts :broadcastaresenttoallinterestedreceivesinaproperorder. 8.Orderedbroadcast 如何决定接收者的顺序?

Orderedbroadcastdecidethereceiveorderbyreceiver ’spriority. 9.

安卓中的Permissions,包括怎么向系统申请权限,怎么用权限保护自己等 Ifanapplicationneedstoaccessarestrictedresource/component,itneedtodeclarethe requiredpermissionintheapplication’smanifestfilebyusingthetag;Ifyouwanttoprotectanapplication,youcanusethetaginyourmanifest file; 三、IO: 1.

安卓原生支持几种IO机制?各自有什么特点?

1.SQLite Database: SQLite is that an open-source ,standard-compliant,lightweight single-tierRDBMS.

专业资料整理5

2.Int

搜索更多关于: NIIT安卓复习提纲+答案 的文档
NIIT安卓复习提纲+答案.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c4t0as1j8435136q5t3t485bn78arf200ch3_1.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top