目录
应用程序基础ApplicatioApplication Fundamentals................................................................. 4
关键类................................................................................................................................ 4
应用程序组件.................................................................................................................... 5
激活组件:intent.....................................................................................................7
关闭组件.................................................................................................................... 7
manifest 文件.......................................................................................................... 8
Intent 过滤器........................................................................................................... 8
Activity 和任务.............................................................................................................. 10
Affinity(吸引力)和新任务................................................................................ 11
加载模式.................................................................................................................. 12
清理堆栈.................................................................................................................. 13
启动任务.................................................................................................................. 14
进程和线程...................................................................................................................... 14
进程.......................................................................................................................... 15
线程.......................................................................................................................... 15
远程过程调用.......................................................................................................... 15
线程安全方法.......................................................................................................... 16
组件生命周期.................................................................................................................. 17
Activity 生命周期.................................................................................................. 17
调用父类.......................................................................................................................... 18
服务生命周期.......................................................................................................... 21
广播接收器生命周期.............................................................................................. 22
进程与生命周期...................................................................................................... 22
用户界面UseUser Interface...............................................................................................24
视图层次View Hierarchy.............................................................................................24
布局Layout.................................................................................................................... 25
部件Widgets..................................................................................................................26
用户界面事件UI Events............................................................................................... 26
菜单Menus.....................................................................................................................26
高级话题Advanced Topics....................................................................................27
适配器Adapter................................................................................................... 27
风格与主题Styles and Themes......................................................................... 27
资源和资产ResourceResources and Assets.......................................................................... 28
资源引用Resource Reference...........................................................................43
国际化和本地化Internationalization and Localization................................ 43
意图和意图过滤器Intents and Intent Filters...........................................................43
意图过滤器Intent filters................................................................................ 47
通常情况Common cases................................................................................51
使用意图匹配Using intent matching........................................................52
数据存储Data Storage.................................................................................................52
概览Storage quickview...................................................................................... 52
� 系统偏好:快速,轻量级存储........................................................................52
� 文件:存储到设备内部或可移动闪存............................................................52
� 数据库:任意的结构化存储............................................................................52
� 支持基于网络的存储........................................................................................52
系统偏好Preferences.......................................................................................... 53
文件Files................................................................................................................ 54
数据库Databases................................................................................................. 54
网络Network......................................................................................................... 55
内容提供器ContenContent Providers...................................................................................55
内容提供器的基础知识Content Provider Basics...........................................55
查询一个内容提供器Querying a Content Provider.......................................57
修改数据Modifying Data.....................................................................................61
创建一个内容提供器Creating a Content Provider........................................ 64
Content URI 总结................................................................................................. 67
清单文件The AndroidManifest.xml File................................................................. 68
清单文件结构Structure of the Manifest File.................................................. 68
文件约定File Conventions................................................................................. 70
文件特性File Features.........................................................................................73
猜您喜欢
推荐内容
开源项目推荐 更多
热门活动
热门器件
用户搜过
随便看看
热门下载
热门文章
热门标签
评论