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 Development Tools for Eclipse

Book Description

By the end of this book you will know how to use Eclipse tools for developing, debugging, and signing Android applications for distribution. Widely adopted by programmers across the world, this is your chance to join them.

  • Build Android applications using ADT for Eclipse
  • Generate Android application skeleton code using wizards
  • Advertise and monetize your applications

In Detail

The increase in Android’s popularity with every passing day cannot be understated. This has resulted in a large programmer base willing to contribute to its success. Eclipse has a powerful IDE and has been adopted widely by programmers across the globe. The focus of ADT is to use existing familiar territory and ease development of Android applications. In this sense, ADT provides a one stop solution for Android application development.

Android Development Tools for Eclipse is a step-by-step guide that provides you with hands-on, practical, and to the point discussion and steps for using Eclipse tools for developing, debugging, and signing Android applications for distribution. It also teaches you to incorporate advertisements to monetize your applications. Every concept and its usage has been demonstrated in this book by implementing them via real world applications.

Android Development Tools for Eclipse starts with the installation of ADT, and then discusses important tools before guiding you through Android application development from scratch, demonstrating different concepts and implementation before finally helping you distribute your applications in the Android market. You will start the development of your first application, explore project structure, and add different widgets including multimedia ones.

You will learn everything about developing, debugging, testing, distributing, and monetizing your Android application using Eclipse ADT.

Table of Contents

  1. Android Development Tools for Eclipse
    1. Table of Contents
    2. Android Development Tools for Eclipse
    3. Credits
    4. About the Authors
    5. About the Reviewer
    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. Installing Eclipse, ADT, and SDK
      1. Introducing the Android platform
      2. What is Android?
        1. Introducing the Android app
        2. What is Dalvik Virtual?
        3. Understanding API level
        4. How many versions (distributions) Android has?
      3. Preparing for Android development
        1. Installing the JDK
        2. Installing the Android SDK
        3. Installing the Eclipse (Juno)
        4. Installing the ADT in Eclipse Juno
      4. Linking the Android SDK to the Eclipse
      5. Summary
    9. 2. Important Features of the IDE
      1. Project explorer
      2. Code editor
        1. Graphical layout editor
        2. Android manifest editor
        3. Menu editor
        4. Resources editor
        5. XML resources editor
      3. Graphical user interface designer
        1. The configuration chooser
        2. The screen layout designer
      4. Properties window
      5. Debugging pane
      6. Dalvik Debug Monitor Server (DDMS)
      7. SDK manager
      8. Android virtual device manager
      9. Running the Application
      10. Getting help
      11. Summary
    10. 3. Creating a New Android Project
      1. Creating a new Android application project
      2. String resources
      3. Using the graphical layout designer
      4. The XML layout code editor
      5. Widget interactions through the source code editor
      6. Toast message
      7. Running the application on the emulator
      8. Running the application on an Android device
      9. Summary
    11. 4. Incorporating Multimedia Elements
      1. Adding a TableLayout
      2. Adding the image resources
      3. Adding ImageView
      4. Adding ImageButtons
      5. Assigning the widget's ID
      6. ImageButtons and handling event
      7. Adding audio
      8. Adding another screen in the app
      9. Adding HTML to WebView
      10. Intent and Activity
      11. The final product run and test
      12. Summary
    12. 5. Adding RadioButton, CheckBox, Menu, and Preferences
      1. Creating a new project
      2. Adding a RadioGroup, RadioButton, and a TextField
      3. Adding a CheckBox
      4. Adding a menu
      5. Defining the Strings
      6. Defining the Preference screen
      7. Hook up
        1. Binding the menu and Preference
        2. Getting values from Preferences
      8. Run the application
      9. Summary
    13. 6. Handling Multiple Screen Types
      1. Using wrap_content and match_parent
      2. Fragment
        1. Defining Fragment and Landscape layout
        2. Hook up in the Main Layout file
      3. Running the application
      4. Optimizing for tablet
      5. Persisting the state information during the state transition
      6. Summary
    14. 7. Adding an External Library
      1. Creating an account at the AdMob website
        1. Adding Site/Application
        2. Choosing the Ad Network Mediation
        3. Adding AdMob SDK to the project
        4. Making changes in the manifest file
        5. Adding the AdMob widget/view in the layout file
      2. Running the application
      3. Summary
    15. 8. Signing and Distributing APK
      1. APK – Android package
      2. Preparing for release
        1. Compilation for release
        2. Generating a private key
        3. Signing
        4. Alignment
      3. Using the Eclipse ADT for release
      4. Publishing to Google Play
        1. Getting help
      5. Summary
    16. Index