Notifikasi
Tidak ada notifikasi baru.

The Busy Coder's Guide to Advanced Android Development Ver 1.9 - Free download Android Tutorial

Welcome to the Warescription!



We hope you enjoy this digital book and its updates – keep tabs on the
Warescription feed off the CommonsWare site to learn when new editions
of this book, or other books in your Warescription, are available.
Each Warescription digital book is licensed for the exclusive use of its
subscriber and is tagged with the subscribers name. We ask that you not
distribute these books. If you work for a firm and wish to have several
employees have access, enterprise Warescriptions are available. Just contact
us at enterprise@commonsware.com.
Also, bear in mind that eventually this edition of this title will be released
under a Creative Commons license – more on this in the preface.
Remember that the CommonsWare Web site has errata and resources (e.g.,
source code) for each of our titles. Just visit the Web page for the book you
are interested in and follow the links.
You can search through the PDF using most PDF readers (e.g., Adobe
Reader). If you wish to search all of the CommonsWare books at once, and
your operating system does not support that directly, you can always
combine the PDFs into one, using tools like PDF Split-And-Merge or the
Linux command pdftk *.pdf cat output combined.pdf.
Some notes for first-generation Kindle users:
• You may wish to drop your font size to level 2 for easier reading
xvii
This document is licensed for Keith Rasmussen's exclusive use by CommonsWare, LLC
• Source code listings are incorporated as graphics so as to retain the
monospace font, though this means the source code listings do not
honor changes in Kindle font size
xviii
This document is licensed for Keith Rasmussen's exclusive use by CommonsWare, LLC
Preface
Welcome to the Book!
If you come to this book after having read its companion volume, The Busy
Coder's Guide to Android Development, thanks for sticking with the series!
CommonsWare aims to have the most comprehensive set of Android
development resources (outside of the Open Handset Alliance itself), and
we appreciate your interest.
If you come to this book having learned about Android from other sources,
thanks for joining the CommonsWare community! Android, while aimed at
small devices, is a surprisingly vast platform, making it difficult for any
given book, training, wiki, or other source to completely cover everything
one needs to know. This book will hopefully augment your knowledge of
the ins and outs of Android-dom and make it easier for you to create "killer
apps" that use the Android platform.
And, most of all, thanks for your interest in this book! I sincerely hope you
find it useful and at least occasionally entertaining.
Prerequisites
This book assumes you have experience in Android development, whether
from a CommonsWare resource or someplace else. In other words, you
should have:
xix
This document is licensed for Keith Rasmussen's exclusive use by CommonsWare, LLC
• A working Android development environment, whether it is based
on Eclipse, another IDE, or just the command-line tools that
accompany the Android SDK
• A strong understanding of how to create activities and the various
stock widgets available in Android
• A working knowledge of the Intent system, how it serves as a
message bus, and how to use it to launch other activities
• Experience in creating, or at least using, content providers and
services
If you picked this book up expecting to learn those topics, you really need
another source first, since this book focuses on other topics. While we are
fans of The Busy Coder's Guide to Android Development, there are plenty of
other books available covering the Android basics, blog posts, wikis, and, of
course, the main Android site itself. A list of currently-available Android
books can be found on the Android Programming knol.
Some chapters may reference material in previous chapters, though usually
with a link back to the preceding section of relevance. Many chapters will
reference material in The Busy Coder's Guide to Android Development,
sometimes via the shorthand BCG to Android moniker.
In order to make effective use of this book, you will want to download the
source code for it off of the book's page on the CommonsWare site.
You can find out when new releases of this book are available via:
• The cw-android Google Group, which is also a great place to ask
questions about the book and its examples
• The commonsguy Twitter feed
• The CommonsBlog
• The Warescription newsletter, which you can subscribe to off of
your Warescription page
xx
This document is licensed for Keith Rasmussen's exclusive use by CommonsWare, LLC
Warescription
This book will be published both in print and in digital form. The digital
versions of all CommonsWare titles are available via an annual subscription
– the Warescription.
The Warescription entitles you, for the duration of your subscription, to
digital forms of all CommonsWare titles, not just the one you are reading.
Presently, CommonsWare offers PDF and Kindle; other digital formats will
be added based on interest and the openness of the format.
Each subscriber gets personalized editions of all editions of each title: both
those mirroring printed editions and in-between updates that are only
available in digital form. That way, your digital books are never out of date
for long, and you can take advantage of new material as it is made available
instead of having to wait for a whole new print edition. For example, when
new releases of the Android SDK are made available, this book will be
quickly updated to be accurate with changes in the APIs.
From time to time, subscribers will also receive access to subscriber-only
online material, including not-yet-published new titles.
Also, if you own a print copy of a CommonsWare book, and it is in good
clean condition with no marks or stickers, you can exchange that copy for a
free four-month Warescription.
If you are interested in a Warescription, visit the Warescription section of
the CommonsWare Web site.
Errata and the Book Bug Bounty
Books updated as frequently as CommonsWare's inevitably have bugs.
Flaws. Errors. Even the occasional gaffe, just to keep things interesting. You
will find a list of the known bugs on the errata page on the CommonsWare
Web site.
xxi
This document is licensed for Keith Rasmussen's exclusive use by CommonsWare, LLC
But, there are probably even more problems. If you find one, please let us
know!
Be the first to report a unique concrete problem in the current digital
edition, and we'll give you a coupon for a six-month Warescription as a
bounty for helping us deliver a better product. You can use that coupon to
get a new Warescription, renew an existing Warescription, or give the
coupon to a friend, colleague, or some random person you meet on the
subway.
By "concrete" problem, we mean things like:
• Typographical errors
• Sample applications that do not work as advertised, in the
environment described in the book
• Factual errors that cannot be open to interpretation
By "unique", we mean ones not yet reported. Each book has an errata page
on the CommonsWare Web site; most known problems will be listed there.
One coupon is given per email containing valid bug reports.
NOTE: Books with version numbers lower than 0.9 are ineligible for the
bounty program, as they are in various stages of completion. We appreciate
bug reports, though, if you choose to share them with us.
We appreciate hearing about "softer" issues as well, such as:
• Places where you think we are in error, but where we feel our
interpretation is reasonable
• Places where you think we could add sample applications, or
expand upon the existing material
• Samples that do not work due to "shifting sands" of the underlying
environment (e.g., changed APIs with new releases of an SDK)
However, those "softer" issues do not qualify for the formal bounty
program.
xxii
This document is licensed for Keith Rasmussen's exclusive use by CommonsWare, LLC
Questions about the bug bounty, or problems you wish to report for bounty
consideration, should be sent to bounty@commonsware.com.
Source Code
The source code samples shown in this book are available for download
from the book's GitHub repository. All of the Android projects are licensed
under the Apache 2.0 License, in case you have the desire to reuse any of it.
If you wish to use the source code from the CommonsWare Web site, bear
in mind a few things:
1. The projects are set up to be built by Ant, not by Eclipse. If you wish
to use the code with Eclipse, you will need to create a suitable
Android Eclipse project and import the code and other assets.
2. You should delete build.xml, then run android update project
-p ... (where ... is the path to a project of interest) on those
projects you wish to use, so the build files are updated for your
Android SDK version.
The book sometimes shows entire source files, and occasionally shows only
fragments of source files that are relevant to the current discussion. The
book rarely shows each and every file for the sample projects. Please refer
to the source code repository for the full source to any of the book samples.
Some samples will be from other Android projects, such as the
CommonsWare Android Components. Those chapters will include links to
their respective source code repositories.
Creative Commons and the Four-to-Free
(42F) Guarantee
Each CommonsWare book edition will be available for use under the
Creative Commons Attribution-Noncommercial-Share Alike 3.0 license as
of the fourth anniversary of its publication date, or when 4,000 copies of
the edition have been sold, whichever comes first. That means that, once
four years have elapsed (perhaps sooner!), you can use this prose for noncommercial
purposes. That is our Four-to-Free Guarantee to our readers
xxiii
This document is licensed for Keith Rasmussen's exclusive use by CommonsWare, LLC
and the broader community. For the purposes of this guarantee, new
Warescriptions and renewals will be counted as sales of this edition,
starting from the time the edition is published.
This edition of this book will be available under the aforementioned
Creative Commons license on July 1, 2014. Of course, watch the
CommonsWare Web site, as this edition might be relicensed sooner based
on sales.
For more details on the Creative Commons Attribution-Noncommercial-
Share Alike 3.0 license, visit the Creative Commons Web site.
Note that future editions of this book will become free on later dates, each
four years from the publication of that edition or based on sales of that
specific edition. Releasing one edition under the Creative Commons license
does not automatically release all editions under that license.
Lifecycle of a CommonsWare Book
CommonsWare books generally go through a series of stages.
First are the pre-release editions. These will have version numbers below
0.9 (e.g., 0.2). These editions are incomplete, often times having but a few
chapters to go along with outlines and notes. However, we make them
available to those on the Warescription so they can get early access to the
material.
Release candidates are editions with version numbers ending in ".9" (0.9,
1.9, etc.). These editions should be complete. Once again, they are made
available to those on the Warescription so they get early access to the
material and can file bug reports (and receive bounties in return!).
Major editions are those with version numbers ending in ".0" (1.0, 2.0, etc.).
These will be first published digitally for the Warescription members, but
will shortly thereafter be available in print from booksellers worldwide.
xxiv
This document is licensed for Keith Rasmussen's exclusive use by CommonsWare, LLC
Versions between a major edition and the next release candidate (e.g., 1.1,
1.2) will contain bug fixes plus new material. Each of these editions should
also be complete, in that you will not see any "TBD" (to be done) markers
or the like. However, these editions may have bugs, and so bug reports are
eligible for the bounty program, as with release candidates and major
releases.
A book usually will progress fairly rapidly through the pre-release editions
to the first release candidate and Version 1.0 – often times, only a few
months. Depending on the book's scope, it may go through another cycle of
significant improvement (versions 1.1 through 2.0), though this may take
several months to a year or more. Eventually, though, the book will go into
more of a "maintenance mode", only getting updates to fix bugs and deal
with major ecosystem events – for example, a new release of the Android
SDK will necessitate an update to all Android books.


Technology And Tutorials
Join the conversation
Post a Comment