Buy Android Development Patterns by Phil Dutson at Bookstore UAE
close menu
Bookswagon
search
My Account
Home > Computer programming / software engineering > Apps programming > Android Development Patterns: Best Practices for Professional Developers
Android Development Patterns: Best Practices for Professional Developers

Android Development Patterns: Best Practices for Professional Developers


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

This reference book is written for intermediate to advanced Android developers. The chapters mirror a normal development life cycle from beginning to end. Each chapter has an introductory image of the Android mascot in some way representing the information contained in the chapter.



Table of Contents:

Preface xiv


1 Development Tools 1

Android Studio 1
Installing Android Studio 2
Using Android Studio 4
Starting a New Project 6
Standalone SDK Tools 9
Android Device Emulation 10
Android Virtual Device 11
GenyMotion 12
Xamarin Android Player 13
Version-Control Systems 14
Subversion 14
Git 14
Mercurial 15
Summary 15


2 Testing and Debugging 17
Unit Testing 17
Integration Testing 20
Debugging 25
Profiling 25
Tracing 27
Messaging 29
Summary 32


3 Application Structure 33
Manifests 34
Java 36
Res (Resources) 37
Drawable 37
Layout 39
Menu 39
Values 40
Other Resources 41
Gradle 41
Summary 42


4 Components 45
Intents 45
Intent Filters 46
Broadcast Receivers 47
Activities 48
Creating an Activity 48
Activity Lifecycle 49
Fragments 52
Creating a Fragment 52
Communicating with Fragments 55
Loaders 56
Summary 58


5 Views 59
The View Class 59
The AnalogClock Subclass 60
The ImageView Subclass 60
The KeyboardView Subclass 60
The MediaRouteButton Subclass 62
The ProgressBar Subclass 62
The Space Subclass 64
The SurfaceView Subclass 64
The TextView Subclass 65
The TextureView Subclass 65
The ViewGroup Subclass 66
The ViewStub Subclass 68
Creating a Custom View 68
Summary 70


6 Layout 71
Layout Basics 71
Layout Measurements 72
Layout Coordinates 73
Layout Containers 74
Linear Layout 74
Relative Layout 76
Table Layout 79
Frame Layout 80
WebView 82
Summary 83


7 App Widgets 85
App Widget Layouts 86
The AppWidgetProviderInfo Object 88
App Widget Sizing 89
Update Frequency 90
Preview Image 90
Widget Category 92
Widget Category Layout 92
Resizable Mode 93
Sample AppWidgetProviderInfo Object 93
The AppWidgetProvider Class 94
Application Manifest Entries 96
Summary 97


8 Application Design: Using MVC 99
Model 100
View 101
Controller 102
Working Asynchronously 104
AsyncTask 105
Summary 106


9 Drawing and Animation 107
Graphics 107
Bitmaps 107
NinePatch 109
Drawables 111
OpenGL ES 114
Animation 117
View Animation 117
Property Animation 118
Drawable Animation 122
Transition Framework 123
Summary 125


10 Networking 127
Accessing the Internet 127
Network Detection 127
Using an HTTP Client 129
Parsing XML 131
Handling Network Operations Asynchronously 133
Volley 135
Summary 138


11 Working with Location Data 139
Permissions 139
Google Play Services Locations API 148
Summary 153


12 Multimedia 155
Working with Audio 155
Audio Playback 156
Audio Recording 159
Working with Video 161
Video Playback 162
Summary 165


13 Optional Hardware APIs 167
Bluetooth 167
Enabling Bluetooth 168
Discovering Devices with Bluetooth 169
Connecting via Bluetooth Classic 171
Communicating with BLE 173
Near Field Communication 176
ACTION_NDEF_DISCOVERED 177
ACTION_TECH_DISCOVERED 178
ACTION_TAG_DISCOVERED 179
Device Sensors 181
Detecting the Available Sensors 182
Reading Sensor Data 183
Summary 185


14 Managing Account Data 187
Getting Accounts 187
Android Backup Service 188
Using Google Drive Android API 191
Using Google Play Games Services 195
Working with Saved Games 196
Summary 199


15 Google Play Services 201
Adding Google Play Services 201
Using Google API Client 203
Google Fit 207
Enable API and Authentication 207
App Configuration and Connection 208
Nearby Messages API 209
Enabling Nearby Messages 209
Sending and Receiving Messages 210
Summary 214


16 Android Wear 217
Android Wear Basics 217
Screen Considerations 218
Debugging 221
Connecting to an Emulator 221
Connecting to a Wear Device 222
Communicating with Android Wear 224
Notifications 224
Sending Data 226
Summary 228


17 Google Analytics 229
Adding Google Analytics 229
Google Analytics Basics 232
Events 233
Goals 234
Ecommerce 235
Custom Timings 235
Custom Dimensions 236
Custom Metrics 236
Summary 237


18 Optimization 239
Application Optimization 239
Application First 239
Application Logging 241
Application Configuration 242
Memory Management 243
Garbage Collection Monitoring 245
Checking Memory Usage 245
Performance 247
Working with Objects 247
Static Methods and Variables 248
Enhanced for Loops 248
float, double, and int 249
Optimized Data Containers 249
Summary 249


19 Android TV 251
The Big Picture 251
Ten-Foot View 252
TV Capabilities 254
Text, Color, and Bitmaps 255
Building an App 258
Emulation and Testing 261
Summary 263


20 Application Deployment 265
Preparing for Deployment 265
Production Checklist 266
Certificate Keys 266
Contact Email 266
App Website 267
External Services or Servers 267
Application Icon 267
Licensing 268
Appropriate Package Name 268
Verifying Permissions and Requirements 269
Log and Debug Removal 270
Removal of Excess Unused Assets 270
Preparing for Google Play 270
Application Screenshots 271
Promo Video 271
High-Res Icon 271
Feature Graphic 272
Promo Graphic 272
Banner for Android TV 272
Getting Paid 272
APK Generation 273
Summary 274


Index 275



About the Author :

Phil Dutson is a Solution Architect over client-side and mobile implementation for one of the world’s largest e-commerce retailers in fitness equipment. He has been collecting and developing for mobile devices since he got his hands on a US Robotics Pilot 5000. He is the author of Sams Teach Yourself jQuery Mobile in 24 Hours (Sams, July 2012), jQuery, jQuery UI, and jQuery Mobile: Recipes and Examples (Pearson, November 2012), Android Developer’s Cookbook, Second Edition (Pearson, July 2013), and Responsive Mobile Design (Addison-Wesley Professional, September 2014).


Best Sellers


Product Details
  • ISBN-13: 9780133923681
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison-Wesley Educational Publishers Inc
  • Height: 228 mm
  • No of Pages: 320
  • Sub Title: Best Practices for Professional Developers
  • Width: 178 mm
  • ISBN-10: 0133923681
  • Publisher Date: 02 Mar 2016
  • Binding: Paperback
  • Language: English
  • Spine Width: 18 mm
  • Weight: 498 gr


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Android Development Patterns: Best Practices for Professional Developers
Pearson Education (US) -
Android Development Patterns: Best Practices for Professional Developers
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Android Development Patterns: Best Practices for Professional Developers

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    Fresh on the Shelf


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    Your IP: 216.73.216.193 IN