- genymotion 更快的虚拟机
- Android Debug Bridge (ADB)
- 使用 DDMS
- Hierarchy Viewer
- 使用 logcat 察看日志
- 绘制9点图
- Lint清理无效的资源
- 逆向工程
-
- 生命周期与相应方法,四种基本状态 active/paused/stoped/killed
- 创建: extends Activity
- 启动: startActivity / startActivityForResult
-
- 生命周期与相应方法
- 创建: extends Service
- 启动与停止:startService() / stopService() / bindService() / unBindService()
-
- 普通广播 / 有序广播
- 静态注册与动态注册 registerReceiver
- 系统广播
-
- query / insert / update / delete
-
- 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
- Intent
-
常用布局
-
常用 UI 组件
- TextView 类
- TextView 文本框
- EditText 可编辑文本框
- AutoCompleteTextView 自动完成文本框
- Button 按钮
- CheckBox 复选框
- RadioButton 单选按钮
- ToggleButton 开关按钮
- AdapterView 类
- ProgressBar 类
- ImageView 类
- 菜单 Menus
- Action Bar
- 对话框
- 通知
- TextView 类
-
位于 res/ 目录
-
资源种类
- animator 定义 Property Animation
- anim 定义过渡动画
- color 定义 Color State List 资源
- drawable 定义 Drawable Resources
- layout 定义布局资源
- menu 定义菜单
- values 简单数据
- xml 原始 xml 资源, 使用 Resources.getXML() 获取
-
- 键值对
- 存储基础数据类型
- 存储位置: /data/data/<包名>/shared_prefs/
- 使用 SharedPreferences.Editor 接口用于修改 SharedPreferences 对象的值
-
- SQLiteOpenHelper 创建和打开数据库
- SQLiteDatabase 操作数据库 (增删改查)
-
文件IO,同传统 Java IO 操作,参加 java.io
- SlidingMenu 滑动菜单
- ViewPagerIndicator ViewPager 指示器
- achartengine 图表引擎
- ActionBarSherlock ActionBar 兼容
- PullToRefresh 下拉加载
简写 | 全拼 | 备注 |
---|---|---|
DDMS | Dalvik Debug Monitor Server | Dalvik调试监控服务器 |
ADB | Android Debug Bridge | Android调试桥 |
NDK | Native Development Kit | Native开发工具包,可以跨平台运行 |