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’smanifestfilebyusingthe 安卓原生支持几种IO机制?各自有什么特点? 1.SQLite Database: SQLite is that an open-source ,standard-compliant,lightweight single-tierRDBMS. 专业资料整理5 2.Int
相关推荐: