万本电子书0元读

万本电子书0元读

顶部广告

Xamarin Mobile Development for Android Cookbook电子书

售       价:¥

12人正在读 | 0人评论 9.8

作       者:Matthew Leibowitz

出  版  社:Packt Publishing

出版时间:2015-11-24

字       数:259.7万

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

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

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Over 80 hands-on recipes to unleash full potential for Xamarin in development and monetization of feature-packed, real-world Android apps About This Book Create a number of Android applications using the Xamarin Android platform Extensively integrate your Android devices with other Android devices to enhance your app creation experience A comprehensive guide packed with real-world scenarios and pro-level practices and techniques to help you build successful Android apps Who This Book Is For If you are a Xamarin developer who wants to create complete Android applications with Xamarin, then this book is ideal for you. No prior knowledge of Android development is needed, however a basic knowledge of C# and .NET would be useful. What You Will Learn Install and use Xamarin.Android with Xamarin Studio and Visual Studio Design an app’s user interface for multiple device configurations Store and protect data in databases, files, and on the cloud Utilize lists and collections to present data to the user Communicate across the network using NFC or Bluetooth Perform tasks in the background and update the user with notifications Capture and play multimedia, such as video and audio, with the camera Implement In-App Billing and Expansion Files and deploy to the store In Detail Xamarin is used by developers to write native iOS, Android, and Windows apps with native user interfaces and share code across multiple platforms not just on mobile devices, but on Windows, Mac OS X, and Linux. Developing apps with Xamarin.Android allows you to use and re-use your code and your skills on different platforms, making you more productive in any development. Although it’s not a write-once-run-anywhere framework, Xamarin provides native platform integration and optimizations. There is no middleware; Xamarin.Android talks directly to the system, taking your C# and F# code directly to the low levels. This book will provide you with the necessary knowledge and skills to be part of the mobile development era using C#. Covering a wide range of recipes such as creating a simple application and using device features effectively, it will be your companion to the complete application development cycle. Starting with installing the necessary tools, you will be guided on everything you need to develop an application ready to be deployed. You will learn the best practices for interacting with the device hardware, such as GPS, NFC, and Bluetooth. Furthermore, you will be able to manage multimedia resources such as photos and videos captured with the device camera, and so much more! By the end of this book, you will be able to create Android apps as a result of learning and implementing pro-level practices, techniques, and solutions. This book will ascertain a seamless and successful app building experience. Style and approach This book employs a step-by-step approach to Android app creation, explained in a conversational and easy-to-follow style. A wide range of examples are listed to ensure a complete understanding of how to deploy competent apps on the Android market.
目录展开

Xamarin Mobile Development for Android Cookbook

Table of Contents

Xamarin Mobile Development for Android Cookbook

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

Errata

Piracy

Questions

1. Working with Xamarin.Android

Introduction

Creating Xamarin.Android projects

Getting ready

How to do it...

How it works...

Creating user interface layouts

How to do it...

How it works...

There's more...

See also

Creating an options menu

How to do it...

How it works...

Supporting previous Android versions

How to do it...

How it works...

There's more...

Adding an action bar

How to do it...

How it works...

There's more...

See also

Navigating with the action bar

How to do it...

How it works...

There's more...

See also

Adding action bar action items

How to do it...

How it works...

Creating contextual action mode menu

How to do it...

How it works...

There's more...

See also

Creating contextual action mode menus

How to do it...

How it works...

There's more...

See also

Sharing code with other platforms

How to do it...

How it works...

2. Showing Views and Handling Fragments

Introduction

Using custom views with layouts

How to do it...

How it works...

There's more...

See also

Creating and using fragments

Getting ready

How to do it...

How it works...

See also

Preserving view and fragment state

How to do it...

How it works...

There's more...

See also

Navigating between fragments

How to do it...

How it works...

See also

Fragments and the action bar

How to do it...

How it works...

See also

Animating fragment navigation

How to do it...

How it works...

See also

Animating view and object properties

How to do it...

How it works...

There's more...

See also

Animating views on the UI

How to do it...

How it works...

There's more...

Adding a navigation drawer with fragments

How to do it...

How it works...

See also

Applying local styles and global themes

How to do it...

How it works...

3. Managing App Data

Introduction

Storing data with SharedPreferences

How to do it...

How it works...

There's more...

Using files and the filesystem

How to do it...

How it works...

There's more...

Reading bundled assets and resources

How to do it...

How it works...

See also

Parsing, processing, and generating XML

Getting ready

How to do it...

How it works...

There's more...

See also

Accessing data with ADO.NET

Getting ready...

How to do it...

How it works...

See also

Accessing data with SQLite.NET

How to do it...

How it works...

There's more...

See also

Encrypting databases with SQLCipher

How to do it...

How it works...

See also

Consuming content providers

Getting ready...

How to do it...

How it works...

There's more...

See also

Creating content providers

How to do it...

How it works...

See also

Backing up preferences and files to the cloud

How to do it...

How it works...

There's more...

See also

Backing up data to the cloud

Getting ready...

How to do it...

How it works...

There's more...

See also

4. Presenting App Data

Introduction

Implementing a ListView

How to do it...

How it works...

There's more...

See also

Using a SimpleAdapter

How to do it...

How it works...

There's more...

See also

Using custom ListView items

How to do it...

How it works...

There's more...

See also

Using a BaseAdapter with arbitrary data

How to do it...

How it works...

There's more...

See also

Using a CursorAdapter

How to do it...

How it works...

There's more...

See also

Optimizing the ListView

How to do it...

How it works...

There's more...

See also

Enabling fast scrolling

How to do it...

How it works...

There's more...

See also

Using section indexes

How to do it...

How it works...

There's more...

See also

Integrating app searchability

How to do it...

How it works...

There's more...

5. Communicating with the Outside World

Introduction

Consuming REST services with HttpClient

Getting ready

How to do it...

How it works...

See also

Obtaining a network state

How to do it...

How it works...

There's more...

See also

Handling network state changes

How to do it...

How it works...

There's more...

See also

Using DownloadManager

How to do it...

How it works...

See also

Accessing Bluetooth

How to do it...

How it works...

There's more...

See also

Transferring data via Bluetooth

How to do it...

How it works...

There's more...

See also

Receiving NFC events

Getting ready

How to do it…

How it works...

There's more...

See also

Writing NFC tags

How to do it...

How it works...

There's more...

See also

Transferring data via NFC

How to do it...

How it works...

Obtaining location coordinates and addresses

How to do it...

How it works...

There's more...

6. Using Background Tasks

Introduction

Asynchronous tasks

How to do it...

How it works...

There's more...

See also

Starting services

How to do it...

How it works...

There's more...

See also

Stopping services

How to do it...

How it works...

See also

Handling simultaneous service requests

How to do it...

How it works...

See also

Starting services automatically

How to do it...

How it works...

See also

Communicating with running services

How to do it...

How it works...

There's more...

See also

Critical services

How to do it...

How it works...

There's more...

7. Notifying Users

Introduction

Toasts

How to do it...

How it works...

There's more...

Alert dialogs

How to do it...

How it works...

There's more...

Alert fragments

Getting ready

How to do it...

How it works...

There's more...

See also

Embedded alert fragments

Getting ready

How to do it...

How it works...

There's more...

Selection alerts

How to do it...

How it works...

The notification builder

Getting ready

How to do it...

How it works...

There's more...

Ongoing notifications

Getting ready

How to do it...

How it works...

Custom notification views

Getting ready

How to do it...

How it works...

There's more...

Push notifications

Getting ready

How to do it...

How it works...

There's more...

8. Interacting with Other Apps

Introduction

Starting app components

How to do it...

How it works...

There's more...

Launching other apps

How to do it...

How it works...

There's more...

Obtaining data from activities

How to do it...

How it works...

Using BroadcastReceivers

How to do it...

How it works...

Scheduling tasks

How to do it...

How it works...

There's more...

Making phone calls

How to do it...

How it works...

There's more...

Intercepting phone calls

How to do it...

How it works...

There's more...

Sending SMS messages

How to do it...

How it works...

There's more...

Receiving SMS messages

How to do it...

How it works...

There's more...

9. Presenting Multimedia

Introduction

Playing audio

How to do it...

How it works...

There's more...

Playing audio in the background

How to do it...

How it works...

There's more...

Managing the audio volume

How to do it...

How it works...

There's more...

Recording an audio

How to do it...

How it works...

There's more...

Playing a video

How to do it...

How it works...

There's more...

Custom video controls

How to do it...

How it works...

Using the camera

How to do it...

How it works...

Creating a camera app

How to do it...

How it works...

There's more...

Handling high-resolution images

How to do it...

How it works...

Drawing on the canvas of a View

How to do it...

How it works...

There's more...

Drawing on the canvas of a SurfaceView

How to do it...

How it works...

There's more...

10. Responding to the User

Introduction

Responding to simple touches

How to do it...

How it works...

There's more...

Responding to scroll gestures

How to do it…

How it works...

There's more...

Responding to manipulation gestures

How to do it...

How it works...

Detecting rotate gestures

How to do it...

How it works...

Responding to custom user gestures

How to do it...

How it works...

There's more...

Listening to sensor data

How to do it...

How it works...

Listening for sensor triggers

How to do it...

How it works...

Discovering the environment

How to do it...

How it works...

Detecting device shakes

How to do it...

How it works...

There's more...

11. Connecting to Wearables

Introduction

Introducing wearable notifications

Getting ready

How to do it...

How it works...

Customizing wearable notifications

How to do it...

How it works...

There's more...

Creating wearable apps

Getting ready

How to do it...

How it works...

There's more...

Creating always-on wearable apps

How to do it...

How it works...

Creating dynamic always-on wearable apps

How to do it...

How it works...

Communicating with wearables

Getting ready

How to do it...

How it works...

There's more...

Building watch faces

Getting ready

How to do it...

How it works...

There's more...

Configuring watch faces

How to do it...

How it works...

There's more...

12. Adding In-App Billing

Introduction

Preparing for in-app billing

Getting ready

How to do it...

How it works...

Integrating in-app billing

Getting ready

How to do it...

How it works...

Listing available products

How to do it...

How it works...

There's more...

Purchasing products

How to do it...

How it works...

There's more...

Listing purchased products

How to do it...

How it works...

Consuming purchases

How to do it...

How it works...

13. Publishing Apps

Introduction

Protecting the content

Getting ready

How to do it...

How it works...

There's more...

Protecting the code

Getting ready

How to do it...

How it works...

Preparing the app package

How to do it...

How it works...

Shrinking the app package

How to do it...

How it works...

There's more...

Creating the app package

How to do it...

How it works...

There's more...

Uploading the app package

Getting ready

How to do it...

How it works...

Adding preview testers

How to do it...

How it works...

There's more...

Releasing for production

Getting ready

How to do it...

How it works...

Updating the app

Getting ready

How to do it...

How it works...

Index

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部