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. 一般放在:
TheAndroiddevelopmentenvironmentincludeIDEandAndroidSDK. 3.安卓应用程序有哪些类型?
Foregroundapp、Backgroundapp、Intermittentapp 、Smallcomponent 4.
和
是什么?各自干什么用的?
permission
to access
1)
elementisusedtostateallthefeaturesofadevicethatusedbyyour
9 专业资料整理
WORD格式
5.adb是什么?有什么用?
adbisacommand.ItusedtointeractwithAndroidemulatordirectlyfromthecommandlineorfromthescript.
六、 其他:
1.周期性Alarm用什么方法创建?
Createarepeatingalarmneedtouseth
e
AlarmManagerclass.
2.安卓支持哪几种?如何获得位置提供者,具体方法类有哪些? LocationProvider
setRepeating()
methodofthe
10 专业资料整理
相关推荐: