精通Android 2应用程序开发

5星 · 超过95%的资源 需积分: 13 65 下载量 25 浏览量 更新于2024-07-30 收藏 10.13MB PDF 举报
" Beginning.Android.2.(Apress,.2010,.1430226293).pdf 是一本面向初学者的Android 2应用程序开发指南,由Mark L. Murphy编写。这本书共39章,深入浅出地介绍了Android开发的基础知识和技术。" 本书覆盖了从Android应用开发的基本概念到高级主题的广泛内容。首先,"The Big Picture"章节讨论了智能手机编程的挑战以及Android平台的核心组成部分,包括可供开发者使用的各种工具和API。接着,"Projects and Targets"章节引导读者了解项目构建过程和结构,学习如何创建一个基本的Android项目。 在后续章节中,作者详细讲解了如何构建骨架应用,使用XML进行布局设计,以及如何利用基本的UI组件(Widgets)如按钮、文本框等。"Working with Containers"章节探讨了如何组织和管理用户界面元素,如布局管理器。此外,还涵盖了选择性Widget的使用,如单选按钮和复选框,以及如何处理列表视图以实现更复杂的用户交互。 "Employing Fancy Widgets and Containers"和"Using a Content Provider"章节深入到高级UI组件和数据共享机制。书中还讨论了输入方法框架,菜单应用,字体定制,以及嵌入WebKit浏览器。在处理线程、活动生命周期事件、旋转屏幕、资源管理和偏好设置等方面,作者提供了详尽的指导。 对于本地数据库的管理和访问,文件操作,以及利用Java库,本书都给予了充分的关注。此外,通过网络通信、内容提供者和自定义服务的构建,读者可以学习到如何实现跨应用的数据交换。关于通知、位置服务、地图集成、电话通话处理,以及开发工具的章节,帮助开发者理解和应对各种实际应用场景。 为了确保应用能在不同设备和屏幕尺寸上正常工作,"Handling Multiple Screen Sizes"和"Dealing with Devices"章节介绍了适配策略和设备兼容性。同时,"Handling Platform Changes"章节讲解了如何应对Android版本更新带来的影响。 本书的最后一章,"Where Do We Go from Here?",为读者提供了进一步学习和提升的路径,鼓励他们继续探索Android开发的广阔世界。附录的索引方便读者快速查找特定主题。 《 Beginning Android 2》是学习Android 2开发的一本全面教程,适合那些希望踏入Android应用开发领域的初学者。它不仅讲解了基础知识,还提供了实践案例,帮助读者建立坚实的Android开发技能。
2010-08-26 上传
Contents at a Glance ■Chapter 1: The Big Picture......................................................................................................................... 1 ■Chapter 2: Projects and Targets ................................................................................................................ 5 ■Chapter 3: Creating a Skeleton Application............................................................................................. 17 ■Chapter 4: Using XML-Based Layouts...................................................................................................... 23 ■Chapter 5: Employing Basic Widgets ....................................................................................................... 29 ■Chapter 6: Working with Containers........................................................................................................ 39 ■Chapter 7: Using Selection Widgets......................................................................................................... 59 ■Chapter 8: Getting Fancy with Lists......................................................................................................... 75 ■Chapter 9: Employing Fancy Widgets and Containers ............................................................................. 95 ■Chapter 10: The Input Method Framework ............................................................................................ 117 ■Chapter 11: Applying Menus.................................................................................................................. 125 ■Chapter 12: Fonts................................................................................................................................... 137 ■Chapter 13: Embedding the WebKit Browser......................................................................................... 141 ■Chapter 14: Showing Pop-Up Messages................................................................................................ 149 ■Chapter 15: Dealing with Threads ......................................................................................................... 155 ■Chapter 16: Handling Activity Life Cycle Events .................................................................................... 167 ■Chapter 17: Creating Intent Filters ........................................................................................................ 171 ■Chapter 18: Launching Activities and Subactivities .............................................................................. 177 ■Chapter 19: Handling Rotation............................................................................................................... 185 ■Chapter 20: Working with Resources .................................................................................................... 197 ■Chapter 21: Using Preferences .............................................................................................................. 213 ■Chapter 22: Managing and Accessing Local Databases ........................................................................ 225 ■Chapter 23: Accessing Files................................................................................................................... 237 ■Chapter 24: Leveraging Java Libraries.................................................................................................. 245 ■Chapter 25: Communicating via the Internet ......................................................................................... 253 ■Chapter 26: Using a Content Provider.................................................................................................... 259 ■Chapter 27: Building a Content Provider ............................................................................................... 265 ■Chapter 28: Requesting and Requiring Permissions ............................................................................. 275 ■Chapter 29: Creating a Service .............................................................................................................. 279 ■Chapter 30: Invoking a Service.............................................................................................................. 285 ■Chapter 31: Alerting Users via Notifications.......................................................................................... 289 ■Chapter 32: Accessing Location-Based Services................................................................................... 295 ■Chapter 33: Mapping with MapView and MapActivity........................................................................... 301 ■Chapter 34: Handling Telephone Calls ................................................................................................... 311 ■Chapter 35: Development Tools ............................................................................................................. 315 ■Chapter 36: Handling Multiple Screen Sizes.......................................................................................... 331 ■Chapter 37: Dealing with Devices.......................................................................................................... 353 ■Chapter 38: Handling Platform Changes................................................................................................ 359 ■Chapter 39: Where Do We Go from Here? .............................................................................................. 367 ■Index ...................................................................................................................................................... 369