• Complain

Mark Murphy - Beginning Android

Here you can read online Mark Murphy - Beginning Android full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. City: New York, year: 2009, publisher: Apress, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Mark Murphy Beginning Android
  • Book:
    Beginning Android
  • Author:
  • Publisher:
    Apress
  • Genre:
  • Year:
    2009
  • City:
    New York
  • ISBN:
    978-1-4302-2420-4
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Beginning Android: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Beginning Android" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Master Android from first principles and begin the journey toward your own successful Android applications! Dear Reader, First, welcome to the world of Android! Were entering a new era of mobile application development, one marked by open platforms and open source, to take walled gardens and make them green houses for any and all to participate in. Android is relatively easy for developers, and I believe that this innovation will help generate a large ecosystem of developers and consumers within a very short time. This means that budding developers such as yourself will have many opportunities to design and build your own applications and youll have a huge and hungry customer base. Second, welcome to the book! Its purpose is to start you on your way with building Android applications, and to help you master the learning curve. Android is already a rich framework, comparable in many ways to the richness Android of desktop Java environments. This means that there is a lot of cool stuff for you to pick up along your journey in order to create the slickest, most useful apps Android you can imagine. The source code for the code samples in this book is all available from the Apress site, so you can stay as hands-on and practical as you like while I introduce you to the core of Android, and invite you to experiment with the various classes and APIs well be looking at. By the time youve finished this book, youll be creating your own Android applications and asking yourself what your next great application will be! Enjoy! Mark Murphy

Mark Murphy: author's other books


Who wrote Beginning Android? Find out the surname, the name of the author of the book and a list of all author's works by series.

Beginning Android — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Beginning Android" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make

Beginning Android

Mark L. Murphy

About the Author

MARK MURPHY is the founder of CommonsWare and the author of the Busy Coders - photo 1MARK MURPHY is the founder of CommonsWare and the author of the Busy Coders Guide to Android Development. A three-time entrepreneur, his experience ranges from consulting on open source and collaborative development for the Fortune 500 to application development on just about anything smaller than a mainframe. He has been a software developer for over 25 years, from the TRS-80 to the latest crop of mobile devices. A polished speaker, Mr. Murphy has delivered conference presentations and training sessions on a wide array of topics internationally.

Mr. Murphy writes the Building Droids column for AndroidGuys and the Android Angle column for NetworkWorld.

Outside of CommonsWare, Mr. Murphy has an avid interest in how the Internet will play a role in citizen involvement with politics and government. He is also a contributor to the Rebooting America essay collection.

Acknowledgments

I would like to thank the Android team, not only for putting out a good product, but for invaluable assistance on the Android Google Groups. In particular, I would like to thank Romain Guy, Justin Mattson, Dianne Hackborn, Jean-Baptiste Queru, Jeff Sharkey, and Xavier Ducrohet.

Icons used in the sample code were provided by the Nuvola icon set.

Introduction

Welcome to the Book!

Thanks for your interest in developing applications for Android! Increasingly, people will access Internet-based services using so-called non-traditional means, such as mobile devices. The more we do in that space now, the more that people will help invest in that space to make it easier to build more powerful mobile applications in the future. Android is new Android-powered devices appeared on the scene first in late 2008 but it likely will rapidly grow in importance due to the size and scope of the Open Handset Alliance.

Most of all, thanks for your interest in this book! I sincerely hope you find it useful and at least occasionally entertaining.

Prerequisites

If you are interested in programming for Android, you will need at least basic understanding of how to program in Java. Android programming is done using Java syntax, plus a class library that resembles a subset of the Java SE library (plus Android-specific extensions). If you have not programmed in Java before, you probably should learn how that works before attempting to dive into programming for Android.

The book does not cover in any detail how to download or install the Android development tools, either the Eclipse IDE flavor or the standalone flavor. The Android Web site covers this quite nicely. The material in the book should be relevant whether you use the IDE or not. You should download, install, and test out the Android development tools from the Android Web site before trying any of the examples listed in this book.

Editions of This Book

This book is being produced via a partnership between Apress and CommonsWare. You are reading the Apress edition, which is available in print and in digital form from various digital book services.

CommonsWare continually updates the original material and makes it available to members of its Warescription program, under the title The Busy Coders Guide to Android Development.

CommonsWare maintains a FAQ about this partnership at http://commonsware.com/apress.

Source Code License

The source code samples shown in this book are available for download from the Apress Web site., in case you have the desire to reuse any of it.

PART 1

Core Concepts

CHAPTER 1

The Big Picture

Android devices, by and large, will be mobile phones. While the Android technology is being discussed for use in other areas (e.g., car dashboard PCs), for the most part, you can think of Android as being used on phones.

For developers, this has benefits and drawbacks.

On the plus side, circa 2009, Android-style smartphones are sexy. Offering Internet services over mobile devices dates back to the mid-1990s and the Handheld Device Markup Language (HDML). However, only in recent years have phones capable of Internet access taken off. Now, thanks to trends like text messaging and to products like Apples iPhone, phones that can serve as Internet access devices are rapidly gaining popularity. So, working on Android applications gives you experience with an interesting technology (Android) in a fast-moving market segment (Internet-enabled phones), which is always a good thing.

The problem comes when you actually have to program the darn things.

Anyone with experience in programming for PDAs or phones has felt the pain of phones simply being small in all sorts of dimensions:

Screens are small (you wont get comments like, Is that a 24-inch LCD in your pocket, or ?).

Keyboards, if they exist, are small.

Pointing devices, if they exist, are annoying (as anyone who has lost their stylus will tell you) or inexact (large fingers and multi-touch LCDs are not a good mix).

CPU speed and memory are tight compared to desktops and servers you may be used to.

You can have any programming language and development framework you want, so long as it was what the device manufacturer chose and burned into the phones silicon.

And, so on

Moreover, applications running on a phone have to deal with the fact that theyre on a phone.

People with mobile phones tend to get very irritated when their phones dont work, which is why the Can you hear me now? ad campaign from Verizon Wireless has been popular for the past few years. Similarly, those same people will get irritated at you if your program breaks their phone by

tying up the CPU so that calls cant be received

not working properly with the rest of the phones OS, such that your application doesnt quietly fade to the background when a call comes in or needs to be placed

crashing the phones operating system, such as by leaking memory like a sieve

Hence, developing programs for a phone is a different experience than developing desktop applications, Web sites, or back-end server processes. You wind up with different-looking tools, different-behaving frameworks, and different than youre used to limitations on what you can do with your program.

What Android tries to do is meet you halfway:

You get a commonly-used programming language (Java) with some commonly used libraries (e.g., some Apache Commons APIs) along with support for tools you may be used to (Eclipse).

You get a fairly rigid and separate framework in which your programs need to run so they can be good citizens on the phone and not interfere with other programs or the operation of the phone itself.

As you may expect, much of this book deals with that framework and how you write programs that work within its confines and take advantage of its capabilities.

What Androids Are Made Of

When you write a desktop application, you are master of your own domain. You launch your main window and any child windows like dialog boxes that are needed. From your standpoint, you are your own world, leveraging features supported by the operating system, but largely ignorant of any other program that may be running on the computer at the same time. If you do interact with other programs, it is typically through an API, such as using JDBC (or frameworks atop it) to communicate with MySQL or another database.

Android has similar concepts, but packaged differently, and structured to make phones more crash-resistant.

Activities

The building block of the user interface is the

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Beginning Android»

Look at similar books to Beginning Android. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Beginning Android»

Discussion, reviews of the book Beginning Android and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.