您好,欢迎访问三七文档
当前位置:首页 > 办公文档 > 求职简历 > Android中的英文单词
unit1AndyRubinWindowsMobile/PhoneC#,C++IOSObjective-CSymbianC++BlackBerryjavaAndroidC,C++,javaJellyBean4.1/4.2KitKat4.4Linux安全性内存管理进程管理网络协议栈驱动模型Libary/javarunningenvironmentC/C++javaBSDClibcembeddedlinuxPacketVideoOpenCodeSurfaceManagerLibWebCoreSGL3DlibrariesFreeTypeSQLiteDalvikapplicationprocedureframejavaViewContentProvidersResourceManagerNotificationManagerActivityManagerapplicationprocedurejavaSMSEmailJDK-Eclipse-SDK-ADTAndroidHelloWorldcreateprojectwritecodecreateAVDrunningHelloWorldAndroid应用程序框架srcgenassertsbinlibsresAndroidManifest.xml常用的开发与调试工具EmulatoradbDDMSLogCatAVDManagerSDKManager四大组件ActivityServiceBroadcastReceiverContentProviderManifest.xmlmanifestuses-permissionpermissioninstrumentationapplicationactivityreceiverserviceproviderunit2ActivityonCreate()onStart()onResume()onPause()onStop()onDestroy()onRestart()横竖屏切换的生命周期android:configChangesandroid:configChanges=orientationandroid:configChanges=orientation|keyboardHiddenonConfigurationChanged()四种基本状态RunningPausedStoppedDestroyedIntentintent=newIntent(this,NewActivity.class);this.startActivity(intent);this.startActivity(Intent[]);startActivityForResult(Intentintent,intRequestCode);onActivityResult(intrequestCode,intresultCode,Intentdata){}四种启动模式standardsingleTopsingleTasksingleInstance如何退出Acivityfinish()killProcess()system.exit()ForceCloseRecordopenedActivitybroadcaststartActivityForResult定义Activity基类ActivityManagerTaskBackStacksavedInstanceStateIntentComponentNameActionDataCategoryExtraFlagActivityServiceBroadcstReceiverIntentFilterunit3ViewTextViewEditTextButtonCheckBoxsetOnCheckedChangeListener()RadioButtonRadioGroupsetOnCheckedChangeListener()ToggleButtonSwitchImageViewDigitalClockTextClockCheckedTextViewChronometerViewGroupAndroidUILinearLayoutandroid:orientation=verticalandroid:layout_weight=1android:gravityandroid:layout_gravityRelativeLayoutandroid:layout_below=@id/aaaandroid:layout_toLeftOf=@id/bbbandroid:layout_alignParentLeft=trueTableLayoutFrameLayoutAbsoluteLayoutSpringSpinner.getItemAtPosition(Spinner.getSelectedItemPosition());setOnItemSelectedListener()SeekBarsetOnSeekBarChangeListener()MenuonCreatOptionMenu(Menumenu)Menu.add()ProgressDialogpaddingmarginunit4Adapterview*ListViewListAdapterModel------List或数组View-------ListViewControl----AdapterRecyclergetCount()getItem()getItemId()getView()ViewconvertViewnullconvertViewitem1returnconvertViewAbsSpinnerGllerySpinnerAbsListViewGridView自定义adapteradapterArrayAdapterSimpleAdapter自定义adapterSimpleCursorAdapterunit5DialogAlertDialog静态内部类Buildercreate()show()ProgressDialogDatePickerDialogTimePickerDialogMenuOptionsMenuSubMenuContextMenuToastToast.makeText(this,Toast信息,Toast.LENGTH_SHORT).show();NotificationNotificationManagernotify(int,Notification)TabHostTabActivityTabHostres/values/style.xmlresourcesstylename=btnitemSelectorstyleThemeunit6SharedPrederencesgetSharedPreferences()getPreferences()key,valuexml内部存储openFileInput()FileInputStreamread()close()外部存储ContentProviderContentResolverSQLite数据库dictionary.dbapkadictionary.db-Eclipseandroidresaw网络存储将数据通过网络存储到远程Socket(TCP/UDP)HTTPgetputpostdelete两种方式通过不同的协议向目标段发送获取数据获取数据的请求应用程序通过ContentResolver对象访问ContentProvider提供的数据Createretrieveupdatedelete如何打开resaw目录中的数据库文件第一次启动时将文件复制到手机内存或SD卡的某个目录中getResources().openRawResourceInputStreamSQLiteDatabase.openOrCreateDatabase打开任意目录中的SQLite数据库文件unit7ServicenofacepriorityhigherthanActivityautoretrieveIPC(InterProcessCommunication)两种使用方式StartedServiceBoundService三个生命周期onCreate()onStart()onDestroy()绑定式Service的五个特点Connection或直接获取Service中状态和数据信息链接后,获取到Service对象Context.bindService()建立服务链接Context.unbindService()停止服务链接Context.bindService()autostart同一个Service可以绑定多个服务链接,这样同时为对各不同的组件提供服务Context.startService()一般会把在应用程序被关闭后任然需要执行的操作实现为一个启动时的ServiceonCreate()onStart()-----startService()onStart()Context.stopService()onDestroy()Context.bindService()将一些执行特定功能,执行周期短或在应用程序关闭后将要停止的操作实现为绑定式ServiceonCreate()onBind()onUnbind()onDestroy()-----bindService()unbindService()onUnbind()onDestroy()ServiceConnectionconn=newServiceConnection()bindService(intentconn,Context.BIND_UTO_CREATE);BroadcastReceiverregisterReceiver()动态注册常驻型广播AndroidManifest.xmlvoidonReceive(ContextcurContext,IntentBroadcasstMsg)AIDL(AndroidInterfaceDefinitionLanguage)NDK(NativeDevelopmentKit)unit8AndroidfiveprocessForegroundprocessVisibleprocessServiceprocessBackgroondprocessEmptyprocess更新UI使其他线程尝试访问UI线程,并委托后者更新UI在线程间进行通信,让想更新UI的其它线程给UI线程发送消息,UI线程根据消息更新UI使用Android提供的AsyncTaskMessageMessageQueueHandlerMessageandRunnableLooperMessageExchangeProcess进程是操作系统结构的额基础,是计算机中正在运行的程序实力,他可以被分配给处理机并被处理机执行。通俗的说,就是一个正在运行的ingyong程序尸体Thread线程是进程中某个单一顺序的控制流,他也被称为轻量级进程,他是处理调度的基本单位unit9HTTPHttpClientHttpURLConnectionopenConnect()createURLConnectionandHttpURLConnectionconnection.setDoOutput(true);connection.setRequestMethod(GET);connect()get2KBpostIIS480KBIIS5100KBSocketTCPSocket(传输控制协议)UDPSocket(用户数据报协议)ConnectivityManagerSessionCookieunit10MeidaPlayeruses-permissionandroid:name=android.permission.INTERNET/uses-permissionandroid:name=android.permission.WAKE_LOCK/MediaPlay
本文标题:Android中的英文单词
链接地址:https://www.777doc.com/doc-4034353 .html