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

NIIT安卓复习提纲+答案

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

WORD格式

ernalstorage :Thedatabestoredisverysmallandcanbestoredinfilesinstead

and ofadatabase;

3..Externalstorage:Itprovidealargecapacitythatallowusertostorelargefiles;

4.Shared Preference:It usedtocustomize applications

intheformofaframeworkthat

allows youtoretrievepersistentkey-valuepairsofbuilt-indatatypes;

5.remotelocation

:Itcanextractscurrentdata(updatedfrequently)fromtheWebandsends

6 专业资料整理

WORD格式

ittotheapplicationthatrequeststhedata; 2.安卓原生contentprov有哪些?

ider

、、1.Brows、

2.Contact3.Calllo4.Mediastor

er s g e 3.如何创建一个?

contentprov

ider

1)Createacustomcontentprovider; 2)SpecifytheURIofacontentprovider; 3)Implementqueryhandlingmethods;

4)Accessthedataexposedbyacontentprovider; 5)HandlerequestsfortheMIMEtypeofdata; 6)Registeracustomcontentprovider. 4.

安卓下访问一个文件,要写到文件最后,要用什么模式打开文件? UsetheFileCreationModes: MODE_APPEND

Themodecreatesafileifitdoesnotexist.However,ifitexists,anycontentaddedtothe fileis appendedattheendoftheexistingfile. 5.

判断SD卡是否可用,用什么方法?

是什么?有什么用?

If(Environment.MEDIA_MOUNTED.equals(Enviroment.getExternalStorageState())) 6.SharedPreferences

、5.Setting

1)Sharedpreferencesarealightweightmechanismusedtostorekey-valuepairsofprimitivedatatypes.

2)SharedPreferenceareanidealpreferences.Theyaremostfrequentlyusedtopersistdataacrossusersessionsandtosharesettingsbetweenapplicationcomponents.

7.

要从远端URL播放多媒体文件用什么stream?

HTTPstream 8.

创建一个安卓数据库都有哪些途径?

1)Creatingadatabaseprogrammatically; 2)Creatingadatabasethroughshellcommands. 四、UI: 1.

安卓有哪些常见的布局管理器(Layout)?各有什么特点?

1.LinearlayoThelinearlayoutallowsyoutoarrangeswidgetsinasingle ut: row;

Tablelayou2. t: Thislayoutarrangesitschildviewsinrowsandcolumns;

FramelayouThislayoutisusedtoaddviewsinastackformat,oneitemovera3. t: nother;

RelativelayInthislayout,viewsarepositionsrelativelytotheirne4. out: ighborsor parents.

5.AbsolutelayoutThislayoutallowyoutospecifytheexactpositionofviewson: alayout.

7 专业资料整理

WORD格式

2. 3.

按下button,被调用的回调函数是什么? 安卓内建的theme有哪些?

onClick()

1)Theme.Black 2)Theme.Light 3)Theme.Translucent 4)Theme.Dialog 5)Theme.Holo 4.

各种对话框共同的父类是是什么?

TheDialogclass actsasthebaseclassofforcreatingalldialogs.

专业资料整理8

WORD格式

5.View类是什么?起什么作用?

Answer:TheviewclassisthebasicbuildingblockofanAndroidapplication ’sUIandthe parent of all widgets. Views are graphical representations of andenable eventhandlingoncomponents. 6.OptionsMenu 1)

是什么?ContextMenu

是什么?

OptionsMenuistheprimarycollectionofmenuitemsforanac

components

tivity,whichappearswhentheuserpressestheMENUbuttonontheemulator/device. 2)

ContextMenuisafloatinglistofmenuitemsthatappearswhenusertouc

hesandholdsaviewthatisregisteredtoprovideacontextmenu.

7.Android原生支持哪几种Dialog? 1)AlertDialog 2)ProcessDialog 3)DatePickerDialog 4)TimePickerDialog 8.

安卓画图相关的主要有哪3个类?各自作用?

1)Canvas:ACanvasrepresentsasurfacewhereyoucandrawshapesandimages;

2)Paint:ThePaintclassinAndroidprovidesinformationaboutthestyleandcolorfordrawingsymbols,text,andgraphics;

3)

Bitmap:Abitmapimageusespixelstocreategraphics.

that can

9.复合控件(compoundviews)是什么?

Compoundviewsrefertocombiningmultipleviewsintoalogicalgroupofitems betreatedasasingleview. 五、Tools:

1.ADB是什么?ADB工具一般放在什么位置? ADB(AndroidDebugBridge)is adebugtool commandline tool

,which

that

isaversatileallows

tocommunicatewithanemulatorinstanceorconnectAndroid-enabledmobiledevice. 一般放在:/platform-tools/folder 2.安卓开发环境包括哪些东西?

TheAndroiddevelopmentenvironmentincludeIDEandAndroidSDK. 3.安卓应用程序有哪些类型?

Foregroundapp、Backgroundapp、Intermittentapp 、Smallcomponent 4.

是什么?各自干什么用的?

permission

to access

1) is atag which usedto declare arestricted resource/componentofanotherapplication; 2) application.

elementisusedtostateallthefeaturesofadevicethatusedbyyour

9 专业资料整理

WORD格式

5.adb是什么?有什么用?

adbisacommand.ItusedtointeractwithAndroidemulatordirectlyfromthecommandlineorfromthescript.

六、 其他:

1.周期性Alarm用什么方法创建?

Createarepeatingalarmneedtouseth

e

AlarmManagerclass.

2.安卓支持哪几种?如何获得位置提供者,具体方法类有哪些? LocationProvider

setRepeating()

methodofthe

10 专业资料整理

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