欢迎来到天天文库
浏览记录
ID:30809876
大小:61.00 KB
页数:11页
时间:2019-01-04
《安卓基础知识超强总结》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、安卓基础知识超强总结1introduction1.1androidLinux,2.24.54LinuxlibraryframeworkapplicaitonapplicationsEclipse+adt+SDK(sourceexamplesupporttool)1.3hellowroldMainActivityextendsActivityonCreate()setContentViewTheresdrawablelayoutvaluesstrings・XMLlayoutmain.xml1.4Rres1.5manifestfil
2、epackagenameThe1.6dalvikdexisbasedonregistersAsummaryoftheknowledgepointsTheActivityTheServiceContentProvdierBroadcastReceiverFourmajorcomponentsTheXXXextendsXXXX2isconfiguredinthelistingOnStart()onResume()onResume()onResume()onR
3、esume()onResume()onResume()onStop()onStop()onStop()onStop()onStop()onResume()onStop()onStop()onStart()onResume()onResume()onResume1showscontrolsViewTextViewButtonEidtTextImageViewProgressBarSeekBarCheckBoxWebViewloadLRI()TheViewGroupListViewScrollViewSpinnerAutoCompl
4、eteTextView,thebigfivelayout(threadversustableframeabsolute)FindViewByld()view・findviewbyid();2dataEt.ThesetText()Thelv.setadapter()Adapter-->()()>SimpleAdapterArrayAdapterLayoutlnflater3listenLv.SetOnXXXListener();SetOnTouchListener()doodlesFourcharacteristicsThemen
5、uDialogboxDialog・Builder二newAlertDialog・Builder・Dialog・Theshow();ProgressDailog5togetthedata1f订e1.1ordinaryJava10modefileoperationmodeprivateappendwrwwLinuxfileunity-(filesfolders)-(itself)(group)——(other)(RWX)OpenFilelnput()openFileOutput()getFileDirs()getCacheDirs
6、()ItisonlyinyourownterritorythatyouhaveauthoritySdcardEnvironment・GetXXX()writesthepermissionStateF(togetthesdcardavailablespace+totalspace)1.2XMLxml.newxxxer();The1.2.0XMLformatdocumentbegins,endsthetag,andendsthetextnodeattributedomsaxpull1parsingXMLparser・setinput
7、();Theparser・geteventtype()parser・Next()parser・getname()parser・nexttext()parser・getattrubutevalue();1.2.2generatestheXMLseriaizer・setoutput()seriaizer・startdocument().enddocument(),startTag().endtag02SharedPreferencepreferredtosavethesoftware,sconfigurationinformatio
8、n/data/data/packagename/share_prefs/config・xmlSavegetSharedPreference();Sp.Edit();Editor.Put(key,value)editor・comReadsp.GetXXX
此文档下载收益归作者所有