Mastering Android Application Development
图书信息
| 作者 | Antonio Pachón Ruiz |
| 出版社 | Packt Publishing |
| ISBN | 9781785887628 |
| 出版时间 | 2015-10-30 |
| 字数 | 153.3万 |
| 分类 | 进口书,外文原版书,电脑,网络 |
读书简介
Learn how to do more with the Android SDK with this advanced Android Application guide which shows you how to make even better Android apps that users will loveAbout This BookLearn how to design and build better Android apps to reach new usersExplore the latest features and tools in the Android SDK that will help you become a better developerFrom concurrency to testing – through to adding adverts and billing, this book ties together every element to help you deliver a high-quality Android application on Google Play Who This Book Is For Mastering Android Application Development is intended for Android developers that want insight on and guidance through the steps they need to take to give their creations the edge in a competitive market.What You Will LearnCreate an Android project with Android M featuresDesign the basic navigation for our app using the UI componentsSet up a cloud-based platform and store data on itImplement programming patterns such as Singleton and Observer to maintain your project code for future useDisplay lists and grids using Android RecyclerViewImplement user interface components and make your app look professionalHandle, download, and store images along with memory managementCreate the database and content providers to perform read-write operationsAdd notifications to the app and analytics to track the user’s usageShow a Google map view on your appConfigure minify to obfuscate the codeAdd adverts and create products for purchase in your app In Detail There are millions of Android apps out there for people to download – how do you make sure yours has the edgeIt’s not always about innovation and ideas – the most successful apps are those that are able to satisfy customer demands – they’re the ones that look the best, the fastest, and the easiest and most intuitive to use. This book shows you how to create Android applications that do precisely that – it has been designed help you consider and answer those questions throughout the development process, so you can create applications that stand out against the crowd. Learn how to create exemplary UIs that contribute to a satisfying user experience through the lens of Material Design, and explore how to harness the range of features within the Android SDK to help you. Dive deeper into complex programming concepts and discover how to leverage concurrency and navigate memory management and image handling. You’ll also find further guidance on testing and debugging so you can guarantee that your application is reliable and robust for users. Beyond this you’ll find out how to extend your app and add greater functionality, including notifications, location services, adverts and app billing (essential if you want to properly monetize your creation!). To make sure you have confidence at every stage in the process, the book also shows you how to release your app to the Play store – to make sure your maximising your efforts to create a popular Android application!Style and approach This is a step-by-step guide where theory and practice are merged in a way that helps you to put a new concept into practice with ease. By helping to focus on the end result, and showing all the technical steps you need to get there, you will be poised for development success!
目录
Mastering Android Application Development
Table of Contents
Mastering Android Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started
Introducing Material Design
Introducing Android 6 Marshmallow
Runtime permissions
Power-saving optimizations
Text selection
Fingerprint authentication
Direct share
Creating MasteringAndroidApp
Getting the tools ready
Summary
2. Designing our App
Selecting an app-navigation pattern
Basic structure
The dashboard pattern
The sliding panel
Tabs
Fragments
Understanding the importance of fragments
The Fragment Manager
Fragments stack
ViewPager
Adapter
Sliding tabs
Customizing tabs
Transitions
Summary
3. Creating and Accessing Content from the Cloud
Creating your own cloud database
Parse
Adding the Parse SDK to our project
Android's Application class
Creating the database
Storing and consuming content from Parse
Storing content
Consuming content
Displaying content
Google Volley and OkHttp
Google Volley
OkHttp
A lightning-fast network
JSON and Gson
Summary
4. Concurrency and Software Design Patterns
Concurrency in Android
Handlers and threads
Introducing AsyncTasks
Understanding services
A type of service – IntentService
Introducing loaders
The importance of patterns
The Singleton pattern
Singleton in the Application class
The Observer pattern
Introducing the Adapter pattern
Summary
5. Lists and Grids
Starting with lists
Using ListViews with built-in views
Creating a custom Adapter
Recycling views
Applying the ViewHolder pattern
Introducing RecyclerView
Using list, grid, or stack
Implementing RecyclerView
Clicking on RecyclerView items
Summary
6. CardView and Material Design
CardView and UI design tips
Introducing CardView
Design-time layout attributes
Working with custom fonts in Android
The design support library
Introducing TabLayout
Toolbar, action bar, and app bar
Adding motion with CoordinatorLayout
Back navigation and up navigation
Summary
7. Image Handling and Memory Management
Downloading images
The traditional way of downloading images
Downloading images with Volley
Introducing Picasso
Mastering images
Vector drawables
Animating with AnimatedVectorDrawable
Working with the nine patch
Memory management
Detecting and locating leaks
Preventing leaks
Activity and context references
Using WeakReference
Summary
8. Databases and Loaders
Creating the database
The database contract
The database open helper
Database Access Object
Performing a query
Using a raw query
Introducing cursors
Content providers
Sync database with UI
Implementing CursorLoader
RecyclerView and CursorAdapter
Introducing pull to refresh with SwipeRefreshLayout
Summary
9. Push Notifications and Analytics
Push notifications
Sending and receiving notifications using GCM
Push notifications with Parse
Using NotificationCompat
The importance of analytics
Analytics with Parse
The error report
Summary
10. Location Services
Configuring the project
Getting the API key
Displaying the debug certificate fingerprint
Creating a Google Developer Console project
Configuring AndroidManifest.xml
Adding the map
Adding the fragment
Implementing MapFragment
Adding a marker
Retrieving data from Parse
Displaying a marker for each location
Adding a title to a marker
Summary
11. Debugging and Testing on Android
Logs and the debug mode
Working with logs
Using Timber, the log wrapper
Debugging our app
Testing on Android
Unit tests with Robolectric
Robolectric configuration
Our first unit test
Running unit tests
Integration tests with Espresso
Espresso configuration
Writing an integration test
Running integration tests
Testing from a UI perspective
Launching The Monkey
Recording UI tests with MonkeyTalk
Continuous integration
Summary
12. Monetization, the Build Process, and Release
Using build variants
Creating build types
Product flavors
Monetization in Android
Key points in advertisement monetization
Adding advertisements with AdToApp
Releasing our app to Play Store
Code obfuscation
Exporting the app
Uploading our app to Play Store
Creating a publisher account
The Google Play Developer console
Publishing an app
Uploading the APK file
Preparing the store listing
Summary
Index
- 批判与建构:南茜・弗雷泽反常规(乔瑞华)
- 非遗传承:非物质文化遗产保护研究(游珈)
- 催化裂化装置设备维护检修案例(胡安定)
- 水电站电气设备(全国水利行业“十三五”规划教材(普通高等教育))(主编马震岳王刚)
- 应用文写作(倪斯雯)
- 语言演化生态学(穆夫温)
- 做情绪的主人:情绪管理与健康指导手册(全10册)(周卓平)
- 老年人辅助器具应用(王文焕)
