Contents

About the Authors

About the Technical Reviewers

images Chapter 1: Before You Start

Introduction to Android

Who Should Read This Book?

What You Need Before You Begin

An Actual Android Application

A Working Development Environment

All the Bells and Whistles

Source Code for the Sample Application

What’s in This Book

images Chapter 2: Android Patterns

UI Design Patterns

Holo

ActionBarSherlock Navigation

Designing for Different Devices

Fragments

Architectural Design Patterns

Classic Android

MVC

MVVM

Dependency Injection

Summary

images Chapter 3: Performance

History

Performance Tips

Android Performance

Java Performance

SQLite Performance

Web Services Performance

Optimized Code

Tools

DDMS

Traceview

Lint

Hierarchy Viewer

Unix Tools

Summary

images Chapter 4: Agile Android

Benefits

Benefits to the Business

Benefits to the Developer

The Sweet Spot

Elements of Agile

Goals

Roll Call

Putting It All Together

Summary

images Chapter 5: Native Development

Deciding Where to Use Native Code

Where Not to Use Native Code

Where to Use Native Code

Java Native Interface

Difficulties Writing Native Code Using JNI

Generate the Code Using a Tool

Minimize the Number of JNI API Calls

Memory Usage

Caching Classes, Method and Field IDs

Threading

Troubleshooting

Extended JNI Check

Always Check for Java Exceptions

Always Check JNI Return Values

Always Add Log Lines While Developing

Native Code Reuse Using Modules

Benefit from Compiler Vectorization

Summary

images Chapter 6: Security

The State of Android Security

Secure Coding Practices

Industry Standard Lists

PCI List

OWASP

Google Security Tips

Our Top 10 Secure Coding Recommendations

Best Practices in Action

Security Policy Enforcer

Version 1 Settings.java

Version 2 Settings.java

Summary

images Chapter 7: Device Testing

Choosing a Strategy

Emulators

Install Intel x86 Atom System Image

Create Your Own Device

Downloading Manufacturer’s AVDs

Automating Emulator Testing with Jenkins

Hardware Testing

Third-Party Testing Service

Borrow Devices from Manufacturers

Crowd Testing

Summary

images Chapter 8: Web Services

Web Service Types

REST or SOAP?

The Richardson Maturity Model

Consuming Web Services

XML or JSON

HTTP Status Codes

Reading and Sending Data

Performance

Services and the AsyncTask Class

Dealing with Long-Running Calls

Optimizations

Security

Dos and Don’ts for Web Services

Authentication

Create Your Own Web Service

Sample Web Services

Google App Engine

Load Balancing

Summary

Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.70.113