万本电子书0元读

万本电子书0元读

顶部广告

Learning Android Application Development电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Raimon Ràfols Montané,Laurence Dawson,

出  版  社:Packt Publishing

出版时间:2016-08-01

字       数:206.2万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Build Android N applications using modern techniques and libraries to get your own high-quality apps published on Google Play in no time About This Book Get started with Android development, from the installation of required tools to publishing to the market Make your applications Android N ready—Android has evolved quite a lot since the very beginning and so has their Software Development Kit—so get up to speed Save time and improve the quality of your applications with widely used open source libraries and dependency management Who This Book Is For Want to get started with Android developmentStart here. What You Will Learn Get to know how to use popular open source libraries to reduce time to market and avoid re-inventing the wheel Automate your application’s testing phase to avoid last minute crashes Use dependency management to properly keep dependencies and updates under control Efficiently show huge amounts of items in a list Forget about memory and speed concerns Publish and monetize your Android applications on Google Play Persist your application data so it can continue working in offline mode Don’t let the UX break because of network issues In Detail The mobile app market is huge. But where do you startAnd how you can deliver something that takes Google Play by stormThis guide is the perfect route into Android app development – while it’s easy for new apps to sink without a trace, we’ll give you the best chance of success with practical and actionable guidance that will unlock your creativity and help you put the principles of Android development into practice. From the fundamentals and getting your project started to publishing your app to a huge market of potential customers, follow this guide to become a confident, creative and reliable mobile developer. Get to grips with new components in Android 7 such as RecyclerView, and find out how to take advantage of automated testing, and, of course, much, much more. What are you waiting forThere’s never been a better time – or a better way – to get into Android app development. Style and approach More than just a manual, this is an accessible route into Android development. Packed with examples that demonstrate how to put key concepts and ideas into practice, this guide isn’t just about learning, it’s about immediate development.
目录展开

Learning Android Application Development

Learning Android Application Development

Credits

About the Author

About the Reviewers

www.PacktPub.com

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

Errata

Piracy

Questions

1. Getting Started with Android Development

Setting up Android Studio

Getting the right version of Android Studio

Installing Android Studio

First run

Creating a sample project

Starting a new project

Running your project

Resource configuration qualifiers

Additional elements

Resources

Modules

Android Manifest

Gradle build system

ProGuard

Summary

2. Activities and Fragments - The Backbone of Your App

Activities

Android design guidelines

The Activity context and scope

Activity lifecycle

Activity states

Activity lifecycle callbacks

Activity states and callbacks

The activity stack

Creating activities

Defining your activity

Editing the app manifest

Creating our Activity class

Building the sample application

Setting up your device for debugging

Running the application

Fragments

When to use fragments

Fragment lifecycle

Fragment context

Activity - fragment lifecycles

Fragment lifecycle callbacks

Creating fragments

Creating our own fragment

Creating a static fragment constructor

Using values from the static factory implementation

Adding a fragment to an activity

Running the application

Adding multiple fragments to a single activity

Adding multiple fragments to an activity

Adding two fragments in a single FragmentTransaction

Running the application

Navigating through an app

Activity navigation

Summary

3. Working with Views – Interacting with Your App

Views and ViewGroups

Common views

TextView

Common operations

EditText

Common operations

ImageView

Common operations

Button

Common operations

ImageButton

Common operations

Switch and CheckBox

Common operations

WebView

Common operations

Common ViewGroups

FrameLayout

Common operations

CardView

Common operations

LinearLayout

Common operations

RelativeLayout

Common operations

ScrollView

Common operations

ListView

Common operations

GridView

Common operations

RecyclerView

Common operations

ConstraintLayout

Common operations

Building a user interface using views and ViewGroups

Creating interfaces using layout files

Creating a basic layout

Adding a TextView

Previewing the layout

Using your layout file

Styling the TextView

Testing the layout

Creating user interfaces programmatically

Creating custom views

The first custom view example

Custom drawing

Drawing on a Canvas

Hooking up the CustomView

Adding the custom view programmatically

Adding the custom view using a layout file

Testing the CustomView

The second custom view example

Creating the CustomTextView class

Adding on-click behavior

Testing the CustomTextView

Overriding the onTouchEvent method

Additional user interface components

Toasts

Dialogs

Summary

4. Lists and Adapters

ListView and ListActivity

ListView

ListActivity

Customizing the item view

Adapters

ArrayAdapter

Performance considerations

BaseAdapter

RecyclerView

Replacing ListView with RecyclerView

CardView

ItemAnimator

ItemDecoration

StaggeredGridLayoutManager

Summary

5. Remote Data

Permissions

Android M permission mechanism

Permission groups

Background processing

Java threads

AsyncTask

IntentService

Network code

Android standard libraries

Volley

Gson

Retrofit

Real case scenario

Summary

6. Image Management

Caching remote data

Memory caches

Disk caches

Handling configuration changes

Loading images

Memory

Handling large images

Different image types

Vector drawables

Images in a RecyclerView

Widely used third-party libraries

Glide

UIL

Picasso

Fresco

Summary

7. Permanent Data

Storing preferences

Initialization

Basic use

Additional features

Files

Internal storage

External storage

Additional methods

SQLite

Schema and contract definition

Helper implementation

Third-party libraries

Realm

Summary

8. Testing Your Application

Testing logic

Simple calculator application

Unit tests

Discovering and fixing issues by creating tests

Instrumentation tests

Testing integrations

Mocking Android dependencies

Testing the UI

Setup

Creating UI tests

Simplifying UI test creation

Putting it all together

Summary

9. Publishing Your Application

Preparation steps

Application signing

Account creation

Publishing your application on Google Play

Adding a new application

Preparing the Store Listing

Uploading the application APK

Summary

10. Monetization – Make Money with Your App

Paid apps

Creating a paid app

Finance tracking

In-app purchases

Initial setup

Adding in-app products

Application code setup

Purchasing in-app products from our application

Consuming purchases

In-app advertising

Integrating with the Google Mobile Ads SDK

Summary

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部