professional android 4 application development

868 1.3K 0
professional android 4 application development

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... Drawing Best Practice Advanced Compass Face Example 42 7 42 8 42 8 43 0 43 1 43 1 43 1 43 2 43 4 43 4 43 5 43 5 43 5 43 6 43 6 43 6 43 7 43 9 44 0 44 1 44 1 44 2 44 2 44 3 44 3 44 4 44 4 44 5 44 6 44 7 44 9 44 9 45 0 45 0 45 0 45 1 45 6 45 7 45 8 xxvii ftoc.indd xxvii 4/ 11/2012 10: 34: 49 AM Meier02275 ftoc V2 - 03/22/2012 CONTENTS Hardware Acceleration Managing Hardware Acceleration Use in Your Applications Checking If Hardware Acceleration Is... and Canceling Notifications 40 6 40 7 40 7 40 8 40 8 40 9 40 9 41 0 41 0 41 1 41 2 41 4 41 5 41 6 Adding Notifications and Dialogs to the Earthquake Monitor 41 8 CHAPTER 11: ADVANCED USER EXPERIENCE Designing for Every Screen Size and Density Resolution Independence Using Density-Independent Pixels Resource Qualifiers for Pixel Density 42 5 42 6 42 6 42 6 42 7 xxvi ftoc.indd xxvi 4/ 11/2012 10: 34: 49 AM Meier02275 ftoc V2 -... the Trackball 46 6 46 6 46 7 46 7 46 7 46 8 47 0 47 0 47 1 47 5 47 5 47 6 Advanced Drawable Resources 47 6 Composite Drawables Transformative Drawables Layer Drawables State List Drawables Level List Drawables 47 6 47 6 47 7 47 8 47 9 Copy, Paste, and the Clipboard 47 9 Copying Data to the Clipboard Pasting Clipboard Data 47 9 48 0 CHAPTER 12: HARDWARE SENSORS 48 1 Using Sensors and the Sensor Manager Supported Android Sensors... Developing for Android Being Fast and Efficient Being Responsive Ensuring Data Freshness Developing Secure Applications Ensuring a Seamless User Experience Providing Accessibility Android Development Tools The Android Virtual Device Manager Android SDK Manager The Android Emulator 19 20 20 21 23 23 24 27 28 28 30 30 33 33 36 36 37 37 37 38 38 38 39 39 40 41 42 43 43 44 45 45 46 47 47 48 49 50 xviii ftoc.indd... the Accelerometer and Magnetic Field Sensors Remapping the Orientation Reference Frame Determining Orientation Using the Deprecated Orientation Sensor 48 2 48 2 48 3 48 4 48 5 48 7 48 9 49 0 49 1 49 2 49 4 49 7 49 7 49 8 500 501 xxviii ftoc.indd xxviii 4/ 11/2012 10: 34: 49 AM Meier02275 ftoc V2 - 03/22/2012 CONTENTS Creating a Compass and Artificial Horizon Introducing the Gyroscope Sensor Introducing the Environmental... Content Provider Transactions Storing Files in a Content Provider A Skeleton Content Provider Implementation 238 242 242 242 243 245 246 246 246 247 248 248 251 252 252 252 253 253 2 54 255 257 257 257 259 260 260 261 261 262 262 263 2 64 2 64 266 268 270 xxiii ftoc.indd xxiii 4/ 11/2012 10: 34: 49 AM Meier02275 ftoc V2 - 03/22/2012 CONTENTS Using Content Providers Introducing the Content Resolver Querying... Action Views and Action Providers Adding Menu Items from Fragments Defining Menu Hierarchies in XML 333 335 336 336 338 343 345 345 346 347 348 349 349 351 352 353 3 54 357 359 360 362 362 363 3 64 3 64 365 366 368 370 370 370 377 377 379 380 381 382 383 3 84 xxv ftoc.indd xxv 4/ 11/2012 10: 34: 49 AM Meier02275 ftoc V2 - 03/22/2012 CONTENTS Updating Menu Items Dynamically Handling Menu Selections Introducing... View Widget 546 546 547 547 548 549 549 553 5 54 556 558 565 566 567 567 567 568 569 570 572 572 5 74 575 577 577 578 579 580 582 587 589 591 591 5 94 595 596 598 598 xxx ftoc.indd xxx 4/ 11/2012 10: 34: 50 AM Meier02275 ftoc V2 - 03/22/2012 CONTENTS Introducing Live Folders Creating Live Folders The Live Folder Content Provider The Live Folder Activity Creating an Earthquake Live Folder Surfacing Application. .. Declaring and Enforcing Permissions Enforcing Permissions when Broadcasting Intents 720 729 737 739 740 740 740 741 742 Introducing Cloud to Device Messaging 743 C2DM Restrictions Signing Up to Use C2DM Registering Devices with a C2DM Server Sending C2DM Messages to Devices Receiving C2DM Messages 743 744 744 748 749 Implementing Copy Protection Using the License Verification Library Installing the License... Plug-In for Eclipse Using the Support Package Creating Your First Android Application Creating a New Android Project Creating an Android Virtual Device Creating Launch Configurations Running and Debugging Your Android Application Understanding Hello World Types of Android Applications Foreground Applications Background Applications Intermittent Applications Widgets and Live Wallpapers Developing for Mobile . Experience 46 Providing Accessibility 47 Android Development Tools 47 The Android Virtual Device Manager 48 Android SDK Manager 49 The Android Emulator 50 ftoc.indd xviiiftoc.indd xviii 4/ 11/2012 10: 34: 49. Latency 40 At What Cost? 41 Considering the User’s Environment 42 Developing for Android 43 Being Fast and E cient 43 Being Responsive 44 Ensuring Data Freshness 45 Developing Secure Applications 45 Ensuring. 03/22/2012 PROFESSIONAL Android ™ 4 Application Development Reto Meier ffirs.indd vffirs.indd v 4/ 11/2012 10:37:19 AM4/11/2012 10:37:19 AM Book Title <Chapter No> V2 - MM/DD/2010 Professional Android

Ngày đăng: 27/03/2014, 23:09

Từ khóa liên quan

Mục lục

  • Professional Android™ 4 Application Development

    • Contents

    • Chapter 1: Hello, Android

      • A Little Background

        • The Not-So-Distant Past

        • Living in the Future

        • What Android Isn’t

        • Android: An Open Platform for Mobile Development

        • Native Android Applications

        • Android SDK Features

          • Access to Hardware, Including Camera, GPS, and Sensors

          • Data Transfers Using Wi-Fi, Bluetooth, and NFC

          • Maps, Geocoding, and Location-Based Services

          • Background Services

          • SQLite Database for Data Storage and Retrieval

          • Shared Data and Inter-Application Communication

          • Using Widgets and Live Wallpaper to Enhance the Home Screen

          • Extensive Media Support and 2D/3D Graphics

          • Cloud to Device Messaging

          • Optimized Memory and Process Management

          • Introducing the Open Handset Alliance

          • What Does Android Run On?

          • Why Develop for Mobile?

          • Why Develop for Android?

            • Factors Driving Android’s Adoption

Tài liệu cùng người dùng

Tài liệu liên quan