Cover image for Professional android programming with mono for android and .NET/C#
Title:
Professional android programming with mono for android and .NET/C#
Series:
Wrox professional guides
Edition:
1st ed.
Publication Information:
Indianapolis, IN : Wiley Pubishing, Inc., 2012
Physical Description:
xxx, 520 p. : ill. ; 24 cm.
ISBN:
9781118026434
General Note:
"Wrox programmer to programmer"-- p. [2] of cover.

Includes index
Abstract:
Annotation A one-of-a-kind book on Android application development with Mono for AndroidThe wait is over! For the millions of .NET/C# developers who have been eagerly awaiting the book that will guide them through the white-hot field of Android application programming, this is the book. As the first guide to focus on Mono for Android, this must-have resource dives into writing applications against Mono with C# and compiling executables that run on the Android family of devices.Putting the proven Wrox Professional format into practice, the authors provide you with the knowledge you need to become a successful Android application developer without having to learn another programming language. You’ll explore screen controls, UI development, tables and layouts, and MonoDevelop as you become adept at developing Android applications with Mono for Android.Answers the demand for a detailed book on the extraordinarily popular field of Android application developmentStrengthens your existing skills of writing applications and shows you how to transfer your talents to building Android apps with Mono for Android and .NET/C#Dives into working with data, REST, SOAP, XML, and JSONDiscusses how to communicate with other applications, deploy apps, and even make money in the processProfessional Android Programming with Mono for Android and .NET/C# gets you up and running with Android app development today.
Added Author:

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000010242600 QA76.76.A65 P76 2012 Open Access Book Book
Searching...
Searching...
30000010290617 QA76.76.A65 P76 2012 Open Access Book Book
Searching...

On Order

Summary

Summary

A one-of-a-kind book on Android application development with Mono for Android

The wait is over! For the millions of .NET/C# developers who have been eagerly awaiting the book that will guide them through the white-hot field of Android application programming, this is the book. As the first guide to focus on Mono for Android, this must-have resource dives into writing applications against Mono with C# and compiling executables that run on the Android family of devices.

Putting the proven Wrox Professional format into practice, the authors provide you with the knowledge you need to become a successful Android application developer without having to learn another programming language. You′ll explore screen controls, UI development, tables and layouts, and MonoDevelop as you become adept at developing Android applications with Mono for Android.

Answers the demand for a detailed book on the extraordinarily popular field of Android application development Strengthens your existing skills of writing applications and shows you how to transfer your talents to building Android apps with Mono for Android and .NET/C# Dives into working with data, REST, SOAP, XML, and JSON Discusses how to communicate with other applications, deploy apps, and even make money in the process

Professional Android Programming with Mono for Android and .NET/C# gets you up and running with Android app development today.


Author Notes

Wallace B. McClure is a Microsoft MVP, ASPInsider, and member of the national INETA Speaker′s Bureau, and has a popular blog and podcast.

Nathan Blevins is an ASPInsider, a public speaker, and blogs at http://nathanblevins.com.

John J. Croft IV is an author, developer, and senior technical manager for Turner Broadcasting System in Atlanta.

Jonathan Dick develops mobile applications, maintains and contributes to several open source projects for mobile, and blogs about it all at http://redth.info.

Chris Hardy, a Microsoft ASPInsider, is a .NET consultant focusing on MonoTouch and Mono for Android development and tweets @chrisntr.


Table of Contents

Forewordp. xxiii
Introductionp. xxv
Chapter 1 Introduction To Android, Mobile Devices, And The Marketplacep. 1
Product Comparisonp. 2
The .NET Frameworkp. 2
Monop. 3
Mono for Androidp. 4
Mono for Android Componentsp. 5
Development Toolsp. 6
Mobile Developmentp. 6
Getting Around Support Issuesp. 7
Design Issuesp. 7
Androidp. 8
History of Androidp. 8
Writing Web-Based Applications for Androidp. 9
Writing Native Applications for Androidp. 9
Android Development Issuesp. 9
Android SDK Toolsp. 10
Android Development Costsp. 11
Cross-Platform Alternativesp. 12
Other Cross-Platform Toolsp. 12
Considerations for Selecting a Cross-Platform Toolp. 12
How Does the Tool Allow You to Author Your Application?p. 13
What Device Features Does the Tool Support?p. 13
What Platforms Does the Tool Support?p. 14
What Skill Sets Does the Tool Require?p. 14
What Tools Exist to Support Development?p. 14
How Active Are the Development Community and Support Channels?p. 14
What Are the Successful Application Deployments for This Tool?p. 14
Summaryp. 15
Chapter 2 Introduction To Mono For Androidp. 17
Before You Begin Developingp. 17
What Is Mono?p. 17
Mono Implementation Goalsp. 18
Mono Standardsp. 18
What Is Mono for Android?p. 18
Why Do I Need Mono for Android?p. 18
Familiar Development Environmentp. 19
Familiar API and Library Structurep. 19
What Are the Trade-Off s of Working with Mono for Android?p. 21
Waiting for Improvementsp. 21
Taking a Potential Performance Hitp. 21
Memory Managementp. 21
What Do I Need for the Mono for Android Development Environment?p. 22
Java SDKp. 22
Android SDKp. 22
Visual Studiop. 24
Visual Studio Development with Mono for Androidp. 25
General Setupp. 25
Building Hello Androidp. 26
Loggingp. 28
Debuggingp. 30
Testingp. 30
Deployingp. 31
Mono for Android Development with MonoDevelopp. 31
General Setupp. 31
Building Hello Androidp. 32
Loggingp. 34
Debuggingp. 34
Testingp. 34
Deployingp. 35
Summaryp. 35
Chapter 3 Understanding Android/Mono For Android Applicationsp. 37
What Is an Android Application?p. 38
The Building Blocks of an Android Applicationp. 39
Activitiesp. 39
Servicesp. 44
Content Providersp. 44
Broadcast Receiversp. 47
Communicating between Components: Android Intentsp. 49
Binding the Components: The Android Manifestp. 50
Android Manifest Basicsp. 51
Editing the Manifest for Mono for Android via Visual Studiop. 54
Summaryp. 56
Chapter 4 PLANNING AND BUILDING YOUR APPLICATION'S USER INTERFACEp. 59
Guidelines for a Successful Mobile UIp. 59
Building an Android UIp. 60
Viewsp. 60
Design Surfacep. 61
Choosing a Control Layoutp. 61
AbsoluteLayoutp. 62
FrameLayoutp. 63
LinearLayoutp. 63
RelativeLayoutp. 65
TableLayoutp. 67
Optimizing Layoutsp. 68
Designing Your User Interface Controlsp. 69
TextViewp. 70
EditTextp. 70
AutoCompleteTextViewp. 71
Spinnerp. 71
Buttonp. 73
Check Boxp. 73
Radio Buttons and Groupsp. 73
Clocksp. 76
Pickersp. 77
Imagesp. 79
ImageViewp. 80
ImageButtonp. 80
Galleryp. 80
Virtual Keyboardsp. 84
Selecting Your Virtual Keyboardp. 86
Removing the Keyboardp. 86
Controlling Your Menusp. 87
Introducing the Menu Systemp. 87
Menusp. 87
Submenusp. 90
Context Menusp. 90
Defi ning Menus as a Resourcep. 92
Menusp. 93
Context Menusp. 94
Resolution-Independent UIp. 95
Supporting Various Screen Resourcesp. 95
Supporting Screen Sizesp. 95
Supporting Pixel Densitiesp. 96
Using Android Market Supportp. 97
Multiple Screen Resolution Best Practicesp. 97
Constructing a User Interface: A Phone and Tablet Examplep. 98
Summaryp. 104
Chapter 5 Working With Datap. 105
Working with SQLitep. 105
Setting Up a Databasep. 106
Setting Up Tablesp. 107
Using SQL Statementsp. 108
Using Read/Select to Read Datap. 108
Using SQL Statements to Insert Datap. 110
Upgrading Strategiesp. 110
Upgrading in Placep. 111
Copying Datap. 111
Android-Specific Database Optionsp. 111
SQLiteOpenHelperp. 111
Storing Data Remotelyp. 113
Working with Remote Datap. 113
Accessing Enterprise Servicesp. 114
Using SOAPp. 115
Working with ASMX Web Servicesp. 115
Working with Windows Communication Foundation (WCF)p. 116
Using REST-Based Web Servicesp. 119
Using JavaScript Object Notation (JSON)p. 120
Posting Data with POSTp. 124
Retrieving Data Using LINQ and XMLp. 125
Using Asynchronous Data Retrievalp. 127
Using Web Services Responsiblyp. 128
Working with Remote SQL Server Databasesp. 128
Summaryp. 130
Chapter 6 Binding Data To Controlsp. 131
Databinding in Mono for Androidp. 132
What Is a Data Adapter?p. 133
What Is an Adapter View?p. 133
How Do These Items Relate to One Another?p. 134
Working with Adapter Views and Large Data Setsp. 134
Exploring Adapters in Depthp. 137
Using Native Adaptersp. 137
Exploring Adapter Views in Depthp. 138
Using Native Adapter Viewsp. 138
Working with Cursorsp. 139
Using a Cursor to Populate a Spinnerp. 139
Setting Up the Spinner and Data Sourcep. 140
Using a Spinner Adapterp. 143
Adding a Listener Event for a Spinnerp. 144
Using a Cursor with a Galleryp. 147
Setting Up the Projectp. 148
Adding the Cursorp. 150
Completing the Custom Adapterp. 152
Working with Listsp. 154
Displaying Simple Data in a Listp. 155
Working with Android's ListAdaptersp. 158
Customizing ListView with a Custom List Adapterp. 160
Handling ListView Eventsp. 166
Preferences Screenp. 168
Nested Navigationp. 171
Grouped Listsp. 173
Displaying Data in a Gridp. 177
Summaryp. 182
Chapter 7 Working With The File System And Application Preferencesp. 183
Working with the File Systemp. 184
File System Type and Structurep. 184
QuickEdit Sample Program: Working with a File Storage Examplep. 189
Working with Application Preferencesp. 195
Application Preference Typesp. 195
Creating Your Own Application Preferencesp. 196
Preferences Programp. 197
Listening for Preference Changesp. 202
Processing XMLp. 204
Summaryp. 205
Chapter 8 Programming With The Device Hardwarep. 207
Working with Sensorsp. 208
Referencing the Sensor Managerp. 208
Sensor Supportp. 208
Accessing Sensorsp. 209
Using Sensorsp. 209
Understanding the Sensor Type Valuesp. 211
Responding to Accelerationp. 212
Using the XYZ Coordinate Systemp. 213
Coding with the Accelerometerp. 213
Building a Compassp. 214
Vibrationp. 218
Networking Connectivityp. 219
ConnectivityManagerp. 219
Checking User Communication Preferencesp. 219
Checking for Changes to BackgroundDataSettingp. 220
Checking Current Network Configurationp. 221
Creating Network Connectivity Notificationsp. 221
Wifi Managerp. 221
WiFi Statesp. 224
WiFi Changesp. 225
Bluetooth Managerp. 225
Working with Bluetooth Statep. 226
Enabling Voice Recognition in Your Appp. 227
Getting Turn-by-Turn Directionsp. 229
Summaryp. 235
Chapter 9 Using Multimedia - Audio, Video, And The Camerap. 237
Android Media Classesp. 238
Playing Audio and Videop. 239
Media Player Supported Formatsp. 239
Programming Audio Playbackp. 240
Programming Video Playbackp. 244
Controlling Playbackp. 247
Managing Playback Outputp. 247
Recording Audio and Videop. 247
Using Intents to Record Videop. 248
Using the Media Recorderp. 251
Confi guring Video Recordingp. 251
Previewing Video Recordingp. 252
Audio Recordingp. 253
Images and Using the Camerap. 254
Using Intents to Take Picturesp. 254
Controlling the Camerap. 257
Managing Camera Settings and Picture Optionsp. 257
Monitoring Autofocusp. 259
Using the Camera Previewp. 260
Taking a Picturep. 261
Reading and Writing JPEG Exif Valuesp. 262
Adding New Media to the Media Storep. 263
Using the Media Scannerp. 263
Adding New Media to the Storep. 264
Speech Recognitionp. 265
Summaryp. 266
Chapter 10 Talking To Other Applications And Librariesp. 269
Android Application Integrationp. 269
Opening the Browserp. 269
Opening E-mailp. 272
Making a Telephone Callp. 273
Sending a Text/SMS Messagep. 274
Opening a Location in the Maps Applicationp. 276
Opening a YouTube Videop. 276
Opening the Marketp. 277
Application Integrationp. 278
Simple Integration with HootSuite and Other Twitter Applicationsp. 279
Configuring Your Intent Filtersp. 279
Handling Incoming Intent Requestsp. 280
Integrating with Contactsp. 280