O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Android 4: New features for Application Development

Book Description

Develop Android applications using the new features of Android Ice Cream Sandwich.

  • Learn new APIs in Android 4.0
  • Get familiar with the best practices in developing Android applications
  • Step-by-step approach with clearly explained sample codes

In Detail

Recently, with the increasing popularity of mobile phones, mobile operating systems have emerged and quickly spread. Now people with smart phones can do everything that they can do with their computers. The popularity of the Android mobile operating system has increased and is widely used. In this book, new features and innovations of Android 4.0 will be discussed.

"Android 4.0: New Features for Application Development" is a practical and hands-on guide for developing android applications using new features of Android Ice Cream Sandwich (Android 4.0) with a step-by-step approach and clearly explained sample codes. You will learn the new APIs in Android 4.0 with sample code.

This book will cover the new features and APIs of Android 4.0 (Android Ice Cream Sandwich). It will show the usage of the new APIs with a step-by-step approach and clearly explained sample code.

You will learn about the new user interface components such as Action Bar and GridLayout. You will also learn about new APIs for social media integration and accessing calendar data. We will also look at new connectivity APIs such as Wi-Fi Direct and Android Beam. Supporting multiple screen sizes and multiple versions of Android is also among the subjects that you will learn.

You can use "Android 4.0: New Features for Application Development" as a reference book for developing Android applications using new features of Android 4.0 with its clearly explained, step-by-step sample codes.

Table of Contents

  1. Android 4: New features for Application Development
    1. Table of Contents
    2. Android 4: New features for Application Development
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    8. 1. Action Bar for All
      1. Action bar
        1. Adding an action bar
      2. Adding an ActionProvider
        1. Adding submenus to the ActionProvider
        2. ShareActionProvider
      3. Adding an action view
      4. Using the action bar for navigation
      5. Summary
    9. 2. A New Layout – GridLayout
      1. GridLayout
        1. Why to use GridLayout
        2. Adding a GridLayout
        3. Configuring GridLayout
      2. A new view – Space
      3. Summary
    10. 3. Social APIs
      1. Basics of contacts in Android
      2. Using Social API
        1. Device user profile
      3. Summary
    11. 4. Calendar APIs
      1. Using Calendar APIs
        1. Creating an event
        2. Using Intents for creating events
        3. Adding an attendee
        4. Adding a reminder
      2. Summary
    12. 5. Fragments
      1. Fragment basics
        1. Fragment lifecycle
      2. Creating and managing fragments
        1. Programmatically adding a fragment
        2. Event sharing with activity
        3. Using multiple fragments in an activity
      3. Types of fragments
        1. ListFragment
        2. DialogFragment
        3. PreferenceFragment
        4. WebViewFragment
      4. Summary
    13. 6. Supporting Different Screen Sizes
      1. Android 4.0 supports different screen sizes
        1. Using match_parent and wrap_content
        2. Using dip instead of px
        3. Omit using AbsoluteLayout
        4. Providing different bitmap drawables for different screen densities
        5. Providing different layouts for different screen sizes
        6. Nine-patch
      2. Summary
    14. 7. Android Compatibility Package
      1. What is Android Compability Package
      2. How to use the Android Compatibility Package
      3. Summary
    15. 8. New Connectivity APIs – Android Beam and Wi-Fi Direct
      1. Android Beam
        1. Beaming NdefMessages
      2. Wi-Fi Direct
        1. Sample Wi-Fi Direct application
      3. Summary
    16. Index