Skip to content

Latest commit

 

History

History
140 lines (117 loc) · 7.65 KB

README.md

File metadata and controls

140 lines (117 loc) · 7.65 KB

Android 开发

开发环境搭建

常用开发工具

四大基本组件

  • Activity

    • 生命周期与相应方法,四种基本状态 active/paused/stoped/killed
    • 创建: extends Activity
    • 启动: startActivity / startActivityForResult
  • Service

    • 生命周期与相应方法
    • 创建: extends Service
    • 启动与停止:startService() / stopService() / bindService() / unBindService()
  • BroadcastReceive

    • 普通广播 / 有序广播
    • 静态注册与动态注册 registerReceiver
    • 系统广播
  • Content Provider

    • query / insert / update / delete
  • IntentIntent Filter

    • Intent
      • 显式(指定接收者)与隐式(不指定接收者, component 为空)
      • action. 要执行的动作
      • data. 执行动作所要操作的数据
      • category. 被执行动作的附加信息
      • type. 指定 intent 数据的类型 (MIME type), 例如:intent.setType("text/plain");
      • component. 直接指定 Intent 的目标组件, 例如: intent.setComponent(new ComponentName(MainActivity.this, OtherActivity.class));
      • extras. 附加信息, Bundle
    • Intent Filter
      • action
      • data
      • category

用户界面

应用资源

多线程与异步处理

数据持久化

常用库

常用简写

简写 全拼 备注
DDMS Dalvik Debug Monitor Server Dalvik调试监控服务器
ADB Android Debug Bridge Android调试桥
NDK Native Development Kit Native开发工具包,可以跨平台运行