the busy coder's guide to advanced android development

555 977 0
the busy coder's guide to advanced android development

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... 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... combine the PDFs into one, using tools like PDF Split-And-Merge or the Linux command pdftk *.pdf cat output combined.pdf xx 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... 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. .. 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. .. 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)... 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... integrate into your own applications for places where an HTML interface might be useful In BCG to Android, we saw a simple integration of a WebView into an Android activity, with the activity dictating what the browsing widget displayed and how it responded to links Here, we will expand on this theme, and show how to more tightly integrate the Java environment of an Android application with the Javascript... example, a new release of the Android SDK will necessitate an update to all Android books xxvii PART I – Advanced UI CHAPTER 1 WebView, Inside and Out Android uses the WebKit browser engine as the foundation for both its Browser application and the WebView embeddable browsing widget The Browser application, of course, is something Android users can interact with directly; the WebView widget is something... qualify for the formal bounty program xxiv 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... sites, but otherwise gaining nothing from being hosted by an Android application 1 WebView, Inside and Out Except for one thing: addJavascriptInterface() The addJavascriptInterface() method on WebView allows you to inject a Java object into the WebView, exposing its methods, so they can be called by Javascript loaded by the Web content in the WebView itself Now you have the power to provide access to a wide . class="bi x0 y0 w0 h0" alt="" The Busy Coder's Guide to Advanced Android Development by M ark L. M urphy The Busy C oder's Guide to Advanced Android Development by Mark L. M urphy Copyright. SeekBars to Volume Streams. 241 Putting Stuff on the Clipboard. 244 Using the Clipboard on Android 1.x/2.x 244 Advanced Clipboard on Android 3.x. 248 The Rest of the Gang. 253 Content Provider Theory. Widget. 64 Crafting App Widgets. 65 The Manifest. 66 The Metadata. 67 iv The Layout 68 The BroadcastReceiver. 68 The Result 71 Another and Another. 72 App Widgets: Their Life and Times. 73 Controlling

Ngày đăng: 28/04/2014, 15:32

Từ khóa liên quan

Mục lục

  • The Busy Coder's Guide to Advanced Android Development

    • Welcome to the Book!

    • Prerequisites

    • Warescription

    • Errata and the Book Bug Bounty

    • Source Code

    • Creative Commons and the Four-to-Free (42F) Guarantee

    • Lifecycle of a CommonsWare Book

    • WebView, Inside and Out

      • Friends with Benefits

      • Turnabout is Fair Play

      • Crafting Your Own Views

        • Pick Your Poison

        • Colors, Mixed How You Like Them

          • The Layout

          • The Attributes

          • The Class

          • Seeing It In Use

          • More Fun With ListViews

            • Giant Economy-Size Dividers

              • Choosing What Is Selectable

              • Introducing MergeAdapter

              • Lists via Merges

              • How MergeAdapter Does It

              • From Head To Toe

              • Control Your Selection

                • Create a Unified Row View

Tài liệu cùng người dùng

Tài liệu liên quan