Android Best Practices [electronic resource] /
Nolan, Godfrey.author.
Truxall, David.author.
Sood, Raghav.author.
Cinar, Onur.author.
Android Best Practices by Godfrey Nolan shows you how to make your Android apps stand out from the crowd with great reviews. Why settle for just making any Android app? Build a brilliant Android app instead that lets your users praise it for ease of use, better performance, and more. Using a series of example apps which gradually evolve throughout this book, Android Best Practices brings together current Android best practices from user interface (UI)/user experience (UX) design, test-driven development (TDD), and design patterns (e.g., MVC) to help you take your app to the next level. In this book you’ll learn how to: • Use Android design patterns for consistent UI experience on many devices • Use agile techniques such as test-driven development, behavior-driven development, and continuous integration • Improve the speed and overall performance of your app • Organize an Android app using design patterns such as MVC/MVP • Create and consume REST and SOAP web services Designing and developing an app that runs well on many if not all the leading Android smartphones and tablets today can be one of the most daunting challenges for Android developers. Well, this book takes much of the mystery out of that for you. After reading and using Android Best Practices, you'll become a much better Android app designer and developer, which in turn can make your apps better placed and more successful in the market place.
""Contents at a Glance""; ""Contents""; ""About the Authors""; ""About the Technical Reviewers""; ""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""; ""Whatâ€?s in This Book""; ""Chapter 2: Android Patterns""; ""UI Design Patterns""; ""Holo""; ""ActionBarSherlock Navigation""; ""Designing for Different Devices""; ""Fragments""; ""Architectural Design Patterns""
""Classic Android""""MVC""; ""The Model""; ""The View""; ""The Controller""; ""MVVM""; ""The Model""; ""The View""; ""The ViewModel""; ""Dependency Injection""; ""The ToDoModule""; ""The Database Provider""; ""The Stub Provider""; ""ToDoApplication""; ""Summary""; ""Chapter 3: Performance""; ""History""; ""Performance Tips""; ""Android Performance""; ""Java Performance""; ""SQLite Performance""; ""Web Services Performance""; ""Optimized Code""; ""Tools""; ""DDMS""; ""System Performance""; ""Heap Usage""; ""Eclipse Memory Analyzer""; ""Memory Allocation""; ""Threads""; ""Method Profiling""
""Traceview""""Lint""; ""Hierarchy Viewer""; ""Unix Tools""; ""Top""; ""Dumpsys""; ""Vmstat""; ""Summary""; ""Chapter 4: Agile Android""; ""Benefits""; ""Benefits to the Business""; ""Benefits to the Developer""; ""The Sweet Spot""; ""Elements of Agile""; ""Goals""; ""Roll Call""; ""TDD""; ""BDD""; ""Continuous Integration""; ""Putting It All Together""; ""Summary""; ""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""""Generating C/C++ Header Files Using javah""; ""Generating the JNI Code using SWIG""; ""Minimize the Number of JNI API Calls""; ""Use Primitive Data Types as Native Method Parameters""; ""Minimize Reach-Back from Native Code to Java Space""; ""Memory Usage""; ""Local References""; ""Never Cache Local References""; ""Release Local References in Complex Native Methods""; ""Dealing with Strings""; ""Use Proper Memory Management Function""; ""Operating on Arrays""; ""Do Not Request Unnecessary Array Elements""; ""Prevent Updating Unchanged Arrays""
""Native I/O""""Caching Classes, Method and Field IDs""; ""Threading""; ""Never Cache the JNI Environment Interface Pointer""; ""Never Access Java Space from Detached Native Threads""; ""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""; ""Chapter 6: Security""; ""The State of Android Security""; ""Secure Coding Practices""; ""Industry Standard Lists""; ""PCI List""; ""OWASP""
""OWASPâ€?s General Secure Coding Guidelines""
"Create Android apps that stand out from the crowd."--Cover.
Includes index.
Android Best Practices by Godfrey Nolan shows you how to make your Android apps stand out from the crowd with great reviews. Why settle for just making any Android app? Build a brilliant Android app instead that lets your users praise it for ease of use, better performance, and more. Using a series of example apps which gradually evolve throughout this book, Android Best Practices brings together current Android best practices from user interface (UI)/user experience (UX) design, test-driven development (TDD), and design patterns (e.g., MVC) to help you take your app to the next level. In this book you’ll learn how to: • Use Android design patterns for consistent UI experience on many devices • Use agile techniques such as test-driven development, behavior-driven development, and continuous integration • Improve the speed and overall performance of your app • Organize an Android app using design patterns such as MVC/MVP • Create and consume REST and SOAP web services Designing and developing an app that runs well on many if not all the leading Android smartphones and tablets today can be one of the most daunting challenges for Android developers. Well, this book takes much of the mystery out of that for you. After reading and using Android Best Practices, you'll become a much better Android app designer and developer, which in turn can make your apps better placed and more successful in the market place.
Android (Electronic resource)
Mobile computing.
Special purpose computers.
Mobile Computing.
Special Purpose and Application-Based Systems.