学Android Studio 3:高效的Android应用程序开发(pdf 英文版)

所需积分/C币:50 2018-02-07 10:38:13 9.21MB PDF
收藏 收藏
举报

使用流行且高效的Android Studio 3工具套件构建Android应用程序,该套件工具是开发人员使用Java API进行Android开发的集成开发环境(IDE)。通过本书,您将了解Android工具生态系统中最新、最有成效的工具,从而确保快速的Android应用程序开发和最小的工作量。一路上,您将通过实例来使用Android Studio逐层开发基于Java的Android应用程序。
Learn Android Studio 3: Efficient Android App development Ted Hagos Manila, National Capital Region, Philippines ISBN-13(pbk):978-1-4842-3155-5 ISBN-13( electronic):978-1-4842-3156-2 htps:/ doi. org/10.1007/978-1-4842-3156-2 Library of Congress Control Number: 2018933042 Copyright o 2018 by Ted Hagos This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made The publisher makes no warranty express or implied, with respect to the material contained herein Managing director, apress media LLC: Welmoed spahr Acquisitions Editor: Steve anglin Development Editor: Matthew Moodie Coordinating Editor: Mark Powers Distributed to the book trade worldwide by Springer Science+ Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax(201)348-4505, e-mail orders-nyasp pringer-sbm.comorvisitwww.springeronline.comapressMediaLlcisacaliforniallcandthe sole member (owner) is Springer Science Business Media Finance Inc(SSBM Finance Inc). SSBM Finance nc is a Delaware corporation Forinformationontranslationspleasee-mailrights@apress.comorvisithttp://www.apress.com/ ights-permissions Apress titles may be purchased in bulk for academic, corporate, or promotional use e Book versions and licenses are also available for most titles. For more information reference our print and ebook bulk sales web pageathttp://www.apress.com/bulk-sales Any source code or other supplementary material referenced by the author in this book is available to readers ongIthubviathebooksproductpagelocatedatwww.apress.com/9781484231555.Formoredetailed informationpleasevisithttp://www.apress.com/source-code. Printed on acid-free paper For Adrianne and Stephanie able of contents About the author ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ About the technical reviewer Acknowledgments mmammamanmmaaaaammaamaamnmmaaaammamaammmman,XV Introduction ■■■■■■■■■ Chapter 1: Introduction History…....,…,1 Statistics Operating system Chapter 2: Android Studio ■■■■■■■■■■■■■口■■■■■国■■口■■■■■■■■口■ ■■■■■■■■■■■■■ ■■■■■■ Android Studio Setup… macOs 235666 Windows…16 Linux Configuring android studio 8 Hardware Acceleration 4 The android studio de nn00n0000000000000n00000n0n00n00n00DD00n0D0D0Dn0D000DD0D00DnDDD00Dn0D0D0DnDDnDDDDDDnDDDD 15 Table of contents Chapter 3: Application Fundamentals 19 Creating a Project. 19 Using Android Studio……,,…… 24 Compilation and runtime .34 Android Components… 35 Components 36 Activities 38 Services…38 Content providers Broadcast receivers Chapter 4: Activities and Layouts ■■■■■■■■■■■■■■■■■■■■■■■■■■■■aa■圆■■ ■■■■■■■■■■■ ■■■■■■■■■ Building the Hello screen... 41 The layout file 42 Main Java program....................……….45 Views and layout . Chapter 5: Handling Events aaaaaaa aaaastaaiaaaa aanaaiaIm 55 Overview of Event Handling 55 Declarative Event Handling .mmmm Programmatic Event handling 000000000000000000D000DDDD0DDDDDDD 59 Working with Text and Buttons 64 More Event handling code 70 Using an Inner class as a listener 72 Using MainActivity as the Listener................... 76 Chapter 6: Working with Multiple Activities.an ■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■■■■■■■a■■a■ 83 Component Activation 83 Launching a Specific Activity m.mmnonennmnnanenemcnanenemncnanonenn, 85 Demo project 85 Pass Data to Another Activity 95 About the GCF Algorithm asssnsasnnsn Returning Results from Other Activities.................107 Table of contents vii Implicit Intents 114 Demo Project............ 日日面 ,115 0peninganhttpRequest..….….………….117 Activity life cycle 120 Chapter 7: UI Elements 125 UE| ements… 125 Themes and colors…125 Colors Themes…130 AppAr...…132 Demo App 134 Fragments 142 Project Setup............... 144 Adding fragments Programmatically.............……………151 Chapter 8: Running in the background maa. ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口a■国■a■a口 157 Long Running Tasks…...………17 Demo Project 158 Async Task ,162 Chapter 9: Debugging m mmmmamnt 169 Syntax Errors 170 Runtime Exceptions 171 Logⅰ c Errors 173 Chapter 10: Data Persistence ■■■■■■■■■■■■■■■口■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■■■■■■■■■■■■■■■■■■■口■口■■■■■■■ 177 SharedPreferences ommmmmmmmmm 178 Demo Project.. 179 Verifying the File Application Level SharedPreferences.................................187 Internal Storage..... 195 How to Work with Internal Storage Demo Project… 196 VII Table of contents Chapter 11: App Distribution 203 Preparing the app for release 204 Prepare Materials and Assets for release ....................................... 204 Configure the app for release 204 Build a Release-Ready Application 205 Releasing the App 210 Appendix A: Introduction to Java ■■口■■■ 213 The Java language 213 Virtual machine…214 Editions 214 Setup…… 1215 Hello world 216 Program Other considerations 222 Variables and Data Types……,,, 223 Primitive Types........................... .224 Reference Types 224 Operators. Program F|oW… DBBBDBDBBDBDBBBDBDBBBDBBBBDB 228 Decisions.… 228 Loops 232 Simple application of Control Structures. The fizzBuzz Problem 234 How to print a5×5 Multiplication Table… 235 Methods 236 Object oriented Programming. More details on classes 242 Constructors 243 0verl0 ading……....................244 Table of contents Packages 245 Multiple Types in a Package When we dont need“ import” 246 Inheritance 247 Object as the root class Single rooted class Inheritance 日日日日日日面日1a日日日日日日面日日日自a日面日日日自日日面日1日自日日日日日面日1a日日自日日日日日 249 Polymorphism....……………………………249 Interfaces .250 Multiple Inheritance 251 EXceptions 252 Index u 255 About the author Ted Hagos is the cto of Rendition Digital International, a software development company based out of Dublin. Before he joined RDl, he had various software development roles and also spent time as trainer at iBM Advanced career Education, ateneo ltl, and asia Pacific College. He spent many years in software development dating back to Turbo C Clipper, dBase IV, and Visual Basic. Eventually, he found Java and spent many years there Nowadays, he's busy with full-stack Javascript and Android

...展开详情
试读 127P 学Android Studio 3:高效的Android应用程序开发(pdf 英文版)
立即下载 低至0.43元/次 身份认证VIP会员低至7折
    抢沙发
    一个资源只可评论一次,评论内容不能少于5个字
    关注 私信 TA的资源
    上传资源赚积分,得勋章
    最新推荐
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版) 50积分/C币 立即下载
    1/127
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第1页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第2页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第3页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第4页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第5页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第6页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第7页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第8页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第9页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第10页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第11页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第12页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第13页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第14页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第15页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第16页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第17页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第18页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第19页
    学Android Studio 3:高效的Android应用程序开发(pdf 英文版)第20页

    试读已结束,剩余107页未读...

    50积分/C币 立即下载 >