售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜