Android5.0 Release Includes Android Quick APls Reference Onur Cinar Apress www.allitebooks.com
Android Quick APIs Reference Onur Cinar Android Includes Android 5.0 Release • • • • • • www.allitebooks.com
For your convenience Apress has placed some of the front matter material after the index.Please use the Bookmarks and Contents at a Glance links to access them. friendsof( Apress www.allitebooks.com
For your convenience Apress has placed some of the front matter material after the index. Please use the Bookmarks and Contents at a Glance links to access them. www.allitebooks.com
Contents at a Glance About the Author . .XW About the Technical Reviewer . PrefaceXw Chapter 1:Android Platform. .1 Chapter 2:Development Environment. .15 Chapter 3:Application Components. .31 Chapter 4:Application Resources . .69 Chapter 5:Layouts and Views. .95 Chapter 6:User Interface . .139 Chapter 7:Storing Chapter 8:Sensors and Location.99 Chapter 9:Media and Camera .217 Index. .249 www.allitebooks.com
v Contents at a Glance About the Author . xv About the Technical Reviewer . xvii Preface . xix ■Chapter 1: Android Platform . 1 ■Chapter 2: Development Environment . 15 ■Chapter 3: Application Components . 31 ■Chapter 4: Application Resources . 69 ■Chapter 5: Layouts and Views . 95 ■Chapter 6: User Interface . 139 ■Chapter 7: Storing Data . 171 ■Chapter 8: Sensors and Location . 199 ■Chapter 9: Media and Camera . 217 Index . 249 www.allitebooks.com
Chapter Android Platform Android is a platform that is carefully crafted for mobile devices including martphones and tablets.It is a combination of an operating system n ap by emphasizing these key components and their roles in the overall system architecture.This book targets the 5.0(Lollipop)version of the Android platform,which is the latest official version at the time of this writing. Platform Architecture Android relies on various open source technologies to provide a solid mobile platform that can satisfy mobile needs.The platform architecture can be best described as a series of five main layers that handle different core operations.Figure 1-1 shows the high-level architecture of the Android platform with these five main layers and their subcomponents. www.allitebooks.com
1 Chapter 1 Android Platform Android is a platform that is carefully crafted for mobile devices including smartphones, and tablets. It is a combination of an operating system, companion native libraries, application runtime, and an application framework. This chapter provides a brief introduction to the Android platform by emphasizing these key components and their roles in the overall system architecture. This book targets the 5.0 (Lollipop) version of the Android platform, which is the latest official version at the time of this writing. Platform Architecture Android relies on various open source technologies to provide a solid mobile platform that can satisfy mobile needs. The platform architecture can be best described as a series of five main layers that handle different core operations. Figure 1-1 shows the high-level architecture of the Android platform with these five main layers and their subcomponents. www.allitebooks.com
CHAPTER 1:Android Platform APPLICATIONS LAUNCHER PHONE 、CONTACTS OTHER APPS APPLICATION FRAMEWORK ACTIVITY PACKAGE CONTENT VIEW SYSTEM AND MANAGER MANAGER WIDGETS NATIVE LIBRARIES AndROID SURFACE MEDIA RUNTIME MANAGER FRAMEWORK SQLITE OPENGL ES FREETYPE WEBKIT ART SGL SSL LIBC ZYGOTE LINUX KERNEL BINDER IPC LOGGER WAKELOCKS ALARM TIMER LOW MEMORY KILLER CAMERA DRIVER WIFI DRIVER AUDIO DRIVER USB DRIVER BLUETOOTH DISPLAY DRIVER POWER DRIVER MANAGEMENT Figure 1-1.Android platform architecture diagram This section will go through these five key layers starting from the bottom and moving upward www.allitebooks.com
2 CHAPTER 1: Android Platform This section will go through these five key layers starting from the bottom and moving upward. Figure 1-1. Android platform architecture diagram www.allitebooks.com