Mark Murphy is the founder of CommonsWare and the author of The Busy Coder's Guide to Android Development. A three-time entrepreneur, his experience ranges from consulting on open source and collaborative development for Fortune 500 companies to application development on just about anything smaller than a mainframe. He has been a software developer for over 25 years, working on platforms ranging from the TRS-80 to the latest crop of mobile devices. A polished speaker, Mark has delivered conference presentations and training sessions on a wide array of topics internationally. Mark writes the "Building Droids" column for AndroidGuys and the "Android Angle" column for NetworkWorld. Outside of CommonsWare, Mark has an avid interest in how the Internet will play a role in citizen involvement with politics and government. He is a contributor to the Rebooting America essay collection, and his personal blog features many posts discussing "cooperative democracy."
Beginning Android 3by Mark Murphy
The vibrant and rich Android development platform, created by Google and the Open Handset Alliance, continues to be a platform in its truest sense, encompassing hundreds of classes beyond the traditional Java classes and open source components that ship with the software development kit. Android's continued growthincludes support for Flash and Flash gaming apps,
The vibrant and rich Android development platform, created by Google and the Open Handset Alliance, continues to be a platform in its truest sense, encompassing hundreds of classes beyond the traditional Java classes and open source components that ship with the software development kit. Android's continued growthincludes support for Flash and Flash gaming apps, Wi-Fi tethering, improved performance, WebM or WebMedia integration for HTML5-based video and other multimedia APIs, Chrome OS (WebOS) integration, and more.
With Beginning Android 3, you’ll learn how to develop applications for Android 3 mobile devices using simple examples that are ready to run with your copy of the software development kit. Author, Android columnist, developer, and community advocate Mark L. Murphy will show you what you need to know to get started programming Android applications, including how to craft graphical user interfaces, use GPS, multi-touch, multi-tasking, and access web services.
What you’ll learn
- Discover Android and how to use it to build Java-based mobile applications for a wide range of phones and devices.
- Create user interfaces using both the Android widget framework and the built-in WebKit-powered Web browser components.
- Utilize the distinctive capabilities of the Android engine, including location tracking, maps, and Internet access.
- Use and create Android applications incorporating activities, services, content providers, and broadcast receivers.
- Support Android 3 and earlier devices, including dealing with multiple Android OS versions, multiple screen sizes, and other device-specific characteristics.
- Create Flash game and other apps on Android.
- Build and experience the array of new WebM video and other multimedia APIs for Android and more.
Who this book is for
This book is aimed at people new to mobile development.
Table of Contents
- The Big Picture
- How to Get Started
- Your First Android Project
- Examining Your First Project
- A Bit About Eclipse
- Enhancing Your First Project
- Rewriting Your First Project
- Using XML-Based Layouts
- Employing Basic Widgets
- Working with Containers
- The Input Method Framework
- Using Selection Widgets
- Getting Fancy with Lists
- Still More Widgets and Containers
- Embedding The WebKit Browser
- Applying Menus
- Showing Pop-up Messages
- Handling Activity Lifecycle Events
- Handling Rotation
- Dealing with Threads
- Creating Intent Filters
- Launching Activities and Sub-Activities
- Working with Resources
- Defining and Using Styles
- Handling Multiple Screen Sizes
- Introducing the Honeycomb UI
- Using the Action Bar
- Handling Platform Changes
- Accessing Files
- Using Preferences
- Managing and Accessing Local Databases
- Leveraging Java Libraries
- Communicating via the Internet
- Services: The Theory
- Basic Service Patterns
- Alerting Users via Notifications
- Requesting and Requiring Permissions
- Accessing Location-Based Services
- Mapping with MapView and MapActivity
- Handling Telephone Calls
- More Development Tools
- The Role of Alternative Environments
- Other Alternative Environments
- Dealing with Devices
- Where Do We Go from Here?
- Publication date:
- Edition description:
- Product dimensions:
- 7.50(w) x 9.10(h) x 1.30(d)
Meet the Author
Most Helpful Customer Reviews
See all customer reviews
This is a well laid out book for Java programmers who want to learn how to create applications for Android devices. This is not a book for learning how to program or for anyone who does not have some experience programming in Java. The author has a nice writing style with a light sense of humour and straight forward explanations of the aspects of Android development. The first few chapters are all too brief and merely touch on topics needed to know to begin programming Android applications. But once you are past these disappointing chapters, the remaining chapters are excellent tutorials providing examples that help illustrate each chapter's topic well. I recommend this book for Java programmers who want to learn how to develop on Android devices. I don't recommend this book for someone trying to learn programming.
This is great book for the beginner. It starts off with installing Android SDK, Eclipse development environment and shows you how to set up an emulator. The book uses very clear examples. It starts with the basics and explains everything to you. The book gives you more than just samples, it gives you instruction. The book uses a walk through approach to teaching. Mr. Murphy is an excellent author. This book covers UI including basic controls, menus, pop up messages, screen rotation, date and time picker, tabs, and handling multiple screen sizes. The book covers activities, resources, threading, communicating via the internet, databases, and phone services. At the end of the book it delves into other development environments for Android. The book assumes the reader has some Java experience. I think that is not necessary as long as you have some object oriented programming experience. If you have knowledge of classes, inheritance, events, constructors, and such, you should be ok. If you find yourself getting lost in the terminology, you might want to pick up an introductory java book. When getting into Android 3, the book talks about the improvements from Android 2. It explains the new features and shows you how to use the new capabilities. This book covers everything you need to know for your first Android App. If you are looking to start developing for Android, this book is for you.
First of all, I would like to say that I am in no way any Android or Java expert. I enjoy creating small apps on my free time and have read a few books about programming, but I have no formal education or experience in the field. The book "Beginning Android 3" seems well suited for someone like me. It assumes that you have some experience in programming and Java, but it starts off easy, by explaining how to install and use the most common tools in your IDE. Then it continues, showing you how to get a simple "Hello world!" type program up and running. If you are using Eclipse, this book covers how to use Eclipse with the Android tools in details. It also covers other IDE's, but I feel that it leans more towards Eclipse. And that is probably not all that bad, Eclipse is free, available for most platforms, and probably the most likely choice if you are just starting with Android development. If you, like me, also have read "Beginning Android 2", you might find yourself thinking "Hey, this book is exactly the same!". And you are actually right. Many of the chapters are exactly the same, word for word. But this book also covers more recent developments in Android, mainly the 3.0 or "Honeycomb", which is an edition of Android intended for devices with bigger screens. Honeycomb is more Tablet-oriented. The first few chapter is mainly about setting up text and buttons on the screen, and these are the chapters that haven't changed much since the previous book. Then, in later chapters, you'll have more new stuff, and the book explains how you would go about creating an app for a tablet that has more screen space, and how to create backwards compatibility when creating apps that could end up on a phone running 2.3 as well as a tablet running 3.0. Not all classes that are available to you in 3.0 will work on a device running 2.3, and the author shows examples of how you could check for what version of Android the app is running on, and how to load resources accordingly. He explains some of the changes that has been done to Android in the past, and how we should prepare for changes that might come in the future. Then the book covers other subjects like how to communicate with the internet, how to load and save both preferences and other information that you need to stay put after the application has been stopped or the phone has been turned off. Then we are shown how to use various services, and how to create services of our own, for instance get the location from the GPS and show it on a map. In the last chapters of the book, you a briefly introduced to programming in other languages than Java, mainly HTML5 and PhoneGap. The author also mentions Rhodes, Flash/Flex/AIR, Jruby/ Ruboto, Mono for Android and Googles own "App Inventor", but this is just to give you an idea of what is out there. There is nothing here with any meat on it, it's basically just to tell you that it is possible to use these to create an Android application. All in all I am pretty content with this book. If you do not have any Java experience, you should get another book in addition to this one. But if you are like me, a self-taught Java programmer that would like to learn how to program applications for Android as a hobby, this book is perfect. It may not be easy, there are chapters that you may have to read more than once, but as long as you know some basic Java, there is nothing in the book that should seem impossible to understand.