xviii Contents
Adding Permissions in the AndroidManifest 527
TableLayout: Creating Tabular UI Designs 529
Creating Your TableLayout UI for ContactGalaxy 530
ContactGalaxy Class: Accessing Your Database 532
Using the Android ContentResolver Class 535
Writing to a Database: addGalaxyViceroy( ) 541
Summary 550
■ Chapter 15: Developing for Android Wearable Devices ������������������������������������������������ 551
True Wearables versus Android Peripherals 552
Development Strategy: Android, Wear SDK, or Plug-In 553
Smartwatch Optimization Fundamentals: Display and CPU 555
Creating Your EarthTimeAPK Android App 556
EarthTime UI Design: Styling an AnalogClock 559
Adding the Background Image of Planet Earth 560
EarthTime Code: MainActivityjava Class 563
Attaching the Pine to the Workstation USB Port 566
Creating Your EarthTime Application Icons 570
Adding Interactivity to the EarthTime App 573
Adding Four ImageView UI Icons to a UI Design 574
Enhancing the App: Adding Background Images 582
EarthTime Interactive: Adding Event Handling 584
Summary 590
■ Chapter 16: The Future of Android: The 64-Bit Android 5�0 OS ������������������������������������� 591
What’s New in Android 5: New OS Features 592
Android 50 Platform: 64-Bit Linux and Java 7 592
Android 5 Runtime: ART Will Become the Default 593
Enhanced 3D Support: OpenGL, Z-Layers, and Shadows 593
The Camera 2 API: UHD with High Dynamic Range 596
Project Volta: Control Power Use Optimization 597
Android Peripheral: Bluetooth Low Energy (BLE) 597