Practical Android: 14 Complete Projects on Advanced Techniques and Approaches

所需积分/C币:9 2018-01-19 19:39:20 4.32MB PDF
收藏 收藏 1
举报

Practical Android: 14 Complete Projects on Advanced Techniques and Approaches Author: Mark Wickham pages 页数: 228) Edition 版本: 1st ed. Language 语言: English Release 出版日期: Apress Release 出版日期: 2018-02-06 ISBN-10 书号: 1484233328 ISBN-13 书号: 9781484233320 http://finelybook.com/practical-android-14-compl
Practical Android: 14 Complete projects on Advanced Techniques and approaches Mark Wickham Dallas, Texas, USA ISBN-13(pbk):978-1-4842-3332-0 ISBN-13( electronic):978-1-4842-333-7 https://doi.org/10.1007/978-1-4842-3333-7 Library of Congress Control Number: 2017964267 Copyright o 2018 by Mark Wickham 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 publicatie neither the authors nor the editors nor the publisher can accept any legal responsibility for any erros or on omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein CoverimagebyFreepik(www.freepik.com) Managing Director: Welmoed Spahr Editorial Director: Todd green Acquisitions Editor: Steve Anglin Development Editor: Matthew Moodie Technical Reviewers: Jeff Friesen and Chaim Krause Coordinating Editor: Mark Powers Copy Editor: Mary behr 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-ny@springer-sbm com orvisitwww.springeronline.com.ApressMedia,LlcisaCaliforniaLlcandthesolemember(owner)isSpringer Science Business Media Finance Inc(SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation Forinformationontranslationspleasee-mailrights@apress.comorvisitwww.apress.com/rights 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 webpageatwww.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/9781484233320.Formoredetailed informationpleasevisitwww.apress.com/source-code Printed on acid-free paper To my parents, who helped me discover computers and software when was young Contents About the author m xif About the technical reviewers ■口■■国■■■■■■国E■■■置E■■■■置口■■■■■■■■■■国■■■■I Acknowledgments Preface mmmmxix Introduction xxI Chapter 1: Introduction to JSON 1.1 Introduction 1.2 Chapter projects 2 1.3 JSON Overview 2 1. json and android 3 1.5 Designing JSON JSON Sample File Validating JSON 6 Text File Encoding.….……7 1.6 Common JSON Operations 7 Setting a jsoN Value in a jsoN object Getting a json Value from a json object 9 Creating a JsoN File Programmatically. Reading and Parsing a jSoN File 10 Printing JSON St Removing JSON Arrays 1.7 JSON Alternatives 13 SON 13 Jackson 14 1.8 References…15 Android json 15 Google GSON 15 Third Party 15 Chapter 2: Connectivity 17 2.1 ntroduction 17 2.2 Chapter Projects 17 2.3 Connectivity Basics 18 2.4 Android Http Options 19 25 Connectivity Status… 22 sing the Built in APls.…………2 WiFi Broadcast receiver 23 2.6 Server Reachability 24 Pinging with ICMP.…… 25 Pinging with Http……26 Http Status codes…127 Blocked protocols and url redirects Generating 204 Responses... 99 2.7 Connections App… Connections App Overview 30 Connections Project …31 Connections App Configuration 31 MainActivity java 32 Interpreting Reachability Results. 36 Contents vii 2.8 Splash app 37 Splash App overview Splash project. Splash. xml 39 SplashActivity j a 41 2.9 Essential tools mmmmmmm,,,,, 45 2.10 References Android Http and Connectivity Apachehttpclient Okhttp... 5666 Tools 日自B日自B日B日BB日BB日日BB日面日BB日面日BB日日BB日BBB日B日B日BB日日BB日日B日日日日日日面日面面日面面日面面日面面日面面日面B面日面重 Chapter 3: Lazy Loading Images n47 3.1 ntroduction 47 3.2 Chapter Projects 47 3.3 Lazy Loading libraries 8 3.4 Lazy loading architecture Memory Cache Disk cache 51 3.5 Choosing a Library 52 Google volley… Square picasso 54 Facebook fresco 55 3.6 Handling Image Assets 56 Size vS. Quality tradeoff ,57 Image Downsampling.........e. 58 Aspect Ratio 37 Lazy Loading App… 60 Lazy Loading App Overview Lazy Loading Project…… XML Layout Files 日B日B重日日正日重B日日1日日日重日日日日B日正日1B日面日日日正日面日面日日日日面日面日面日日日日面日面日面日面日日日面正日面日面日面直日重 ImageLoader ja Contents Memory Cache. java 173 Filecache java. adapters 76 Lazy list Adapter 76 Lazy Grid Adapter.......................78 Lazy gallery Adapter 81 3.8 References 83 Android and java references 83 Third-Party Lazy Loading Libraries 84 Chapter 4: Remote Crash Logs aat 85 4.1 Introduction 85 4.2 Chapter project 85 4. 3 Remote Crash Log 86 How Crash Logging works............................88 4.4 App Crash Report for Android. ,89 ACRA Overview 89 4.5 ACRA Back-End server 91 4.6 Open Street Map for Android 92 4.7 Remote Crash Log App 95 Remote Crash Log App Overview Remote Crash Log Project...,.,……,…………,97 PHP Self-Hosted Script 4.8 References 104 Android 104 Google Firebase .104 SMdroio.…… 104 Third party .. Chapter 5: Uploading and Emailing ■■■■■■■■■■■■■■口■■■■■国■■国■国■■■■■■口■■■■■■■■■■国■■■■口■■■■■■■■■■■■■■ 105 5.1 Introduction…105 5.2 Chapter Projects 5.3 Overview 106 Contents 54 Server Spinner: Server Setup.…… 107 55 Server Spinner App… 110 Server Spinner App overview 110 Server Spinner project. Deleting an Iten.… …117 Utils java 日重日日面日面面日1日日面日日面日日日面日日日日面日面日1日日日面日日面日面日日面日日日日面日面面日日日面日日日日B日 118 Uploading an Item 118 5.6 Mobile email 120 5.7 Mobile Email approaches 120 5.8 Email protocols …121 5.9 Android email clients mmmmm. 122 5. 10 Emailing App: AWS Server Setup 122 5.11 Emailing App… 124 Android Intents 124 JavaMail aPl 125 External Aws Interface 125 Emailing App Overview Emailing project 126 MainActivity java 127 GMailSender, java......................... 132 JSSEProvider java……… 133 5. 12 References 133 Uploading files 133 Email Chapter 6: Push Messaging ammaar ■■■■■■■■■口■■口■■■■■■■■■■■■■■■■■口■■■■■■■■■■■■■口■■■■■口■■■■■■■■国■■ 135 6.1 Introduction…135 6.2 Chapter Projects .136 6. 3 Push Messaging Overview ….136 Push Technologies 137 How Push Messaging Works 139 Choosing a technology…...,… 140 Contents 6.4 Push Messaging Services 142 Push Service Advantages. Choosing a Push Service Services Setup Steps.... …144 6.5 Firebase Cloud Messaging…..,,………………145 GCM/ FCM Migration..…, ……145 FCM Setup… 146 FCM Quickstart App 148 FCM App….........., 149 FCM Project 150 Application Server Setup 154 FCM Upstream Messaging…… .159 6.6 Open Source Push Messaging with MQTT..m.........m...161 MQTT Introduction 161 MQTT App 163 MQTT Project 164 MQTT Message Brokers 169 MQTT Broker Setup for AWS 169 Sending messages with MQTT Web clients.... …170 MQTT Wrap U 171 6.7 References ,171 Firebase Cloud Messaging(FCM)…… 171 MQTT Push Messaging 面面面面面面面面日面面 172 Chapter 7: Android Audio ammm mannan. 173 7.1 Introduction m 173 7.2 Chapter Projects.mmmmmmmamnnmmmmnmn. 175 7.3 Audio overview 176 API and Class Summary 176 Choosing the Right APl 178

...展开详情
试读 127P Practical Android: 14 Complete Projects on Advanced Techniques and Approaches
立即下载 低至0.43元/次 身份认证VIP会员低至7折
抢沙发
一个资源只可评论一次,评论内容不能少于5个字
关注 私信 TA的资源
上传资源赚积分,得勋章
最新推荐
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches 9积分/C币 立即下载
1/127
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第1页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第2页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第3页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第4页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第5页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第6页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第7页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第8页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第9页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第10页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第11页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第12页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第13页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第14页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第15页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第16页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第17页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第18页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第19页
Practical Android: 14 Complete Projects on Advanced Techniques and Approaches第20页

试读结束, 可继续阅读

9积分/C币 立即下载 >