Book Image

Android Development Tools for Eclipse

By : Khirulnizam Abd Rahman, Sanjay Shah
Book Image

Android Development Tools for Eclipse

By: Khirulnizam Abd Rahman, Sanjay Shah

Overview of this book

<p>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.</p><p>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.</p><p></p><p>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.</p><p></p><p>You will learn everything about developing, debugging, testing, distributing, and monetizing your Android application using Eclipse ADT.</p>
Table of Contents (10 chapters)
9
Index

Chapter 4. Incorporating Multimedia Elements

This chapter will discuss how to incorporate multimedia elements inside a project and handle several screens in an app. The readers will be shown how to add images, sounds and an HTML page in the project. We will discuss the following topics with the help of a project called SimpleNumb3r5:

  • Forming the layout
  • Adding the image resources
  • Inserting ImageView
  • Inserting ImageButtons
  • ImageButton and handling events
  • Adding audio and multiple screen support
  • Inserting HTML in a WebView
  • Using Intent and Activity
  • Adding a new activity in the manifest file
  • The final product – run, deploy, and test app

For this chapter, we need a new project that will cover the Android devices from Version 2.1 (API level 7) to the latest version. So set android:minSdkVersion to 7, and android:targetSdkVersion to 16.

The icon and other resources are available in a downloadable source code (refer to the download tip mentioned in the Preface of this book). Download these...