Xamarin 4.x Cross-Platform Application Development - Third Edition

Develop powerful cross-platform applications with Xamarin

Xamarin 4.x Cross-Platform Application Development - Third Edition

This ebook is included in a Mapt subscription
Jonathan Peppers

Develop powerful cross-platform applications with Xamarin
$10.00
$44.99
RRP $35.99
RRP $44.99
eBook
Print + eBook
Preview in Mapt

Book Details

ISBN 139781786465412
Paperback292 pages

Book Description

Xamarin is a leading cross-platform application development tool used by top companies such as Coca-Cola, Honeywell, and Alaska Airlines to build apps. Version 4 features significant updates to the platform including the release of Xamarin.Forms 2.0 and improvements have been made to the iOS and Android designers. Xamarin was acquired by Microsoft so it is now a part of the Visual Studio family.

This book will show you how to build applications for iOS, Android, and Windows. You will be walked through the process of creating an application that comes complete with a back-end web service and native features such as GPS location, camera, push notifications, and other core features. Additionally, you’ll learn how to use external libraries with Xamarin and Xamarin.Forms to create user interfaces. This book also provides instructions for Visual Studio and Windows.

This edition has been updated with new screenshots and detailed steps to provide you with a holistic overview of the new features in Xamarin 4.

Table of Contents

Chapter 1: Xamarin Setup
Understanding Xamarin
Installing Xcode
Installing Xamarin on Mac OS X
Setting up the Android emulator
Installing Xamarin on Windows
Connecting Visual Studio to a Mac for iOS development
Enrolling in the iOS developer program
Registering as a Google Play developer
Summary
Chapter 2: Hello, Platforms!
Building your first iOS application
Understanding Apple's MVC pattern
Using the iOS designer
Building your first Android application
Understanding Android activities
Xamarin's Android designer
Summary
Chapter 3: Code Sharing Between iOS and Android
Learning the MVVM design pattern
Comparing project organization strategies
Setting up a shared project
Working with portable class libraries
Using preprocessor statements
Simplifying dependency injection
Implementing Inversion of Control
Summary
Chapter 4: XamSnap - A Cross-Platform App
Starting our sample application concept
Developing our model layer
Writing a mock web service
Writing the ViewModel layer
Writing unit tests
Summary
Chapter 5: XamSnap for iOS
Understanding the basics of an iOS app
Xamarin.iOS Build Options
Using UINavigationController
Implementing the login screen
Using segues for navigation
Setting up UITableView
Adding a friends list screen
Adding a list of messages
Composing messages
Summary
Chapter 6: XamSnap for Android
Introducing the Android Manifest
Setting up Material Design
Adding a login screen
Using ListView and BaseAdapter
Implementing the friends list
Composing messages
Summary
Chapter 7: Deploying and Testing on Devices
iOS provisioning
Android device settings
Understanding the linker
Understanding AOT compilation
Avoiding common memory pitfalls
Summary
Chapter 8: Contacts, Camera, and Location
Introducing Xamarin.Mobile
Accessing contacts
Looking up GPS location
Accessing the photo library and camera
Summary
Chapter 9: Web Services with Push Notifications
Learning Windows Azure
Exploring Azure Functions
Using the Apple Push Notification service
Implementing Google Cloud Messaging
Summary
Chapter 10: Third-Party Libraries
The Xamarin Component Store
Porting existing C# libraries
Objective-C bindings
Java bindings
Using XPath in Java bindings
Summary
Chapter 11: Xamarin.Forms
Creating Hello World in Xamarin.Forms
Understanding the architecture behind Xamarin.Forms
Using XAML in Xamarin.Forms
Using data-binding and MVVM
Summary
Chapter 12: App Store Submission
Following the iOS App Store Review Guidelines
Submitting an app to the iOS App Store
Signing your Android applications
Submitting the app to Google Play
Tips for building a successful mobile app
Summary

What You Will Learn

  • Apple’s MVC design pattern
  • The Android activity lifecycle
  • Share C# code across platforms and call native Objective-C or Java libraries from C#
  • Create a real web service back end in Windows Azure using SQL Azure as database storage
  • Set up third-party libraries such as NuGet and Objective Sharpie in many different ways, and port a desktop .NET library to Xamarin
  • Use Xamarin.Mobile for camera, contacts, and location

Authors

Table of Contents

Chapter 1: Xamarin Setup
Understanding Xamarin
Installing Xcode
Installing Xamarin on Mac OS X
Setting up the Android emulator
Installing Xamarin on Windows
Connecting Visual Studio to a Mac for iOS development
Enrolling in the iOS developer program
Registering as a Google Play developer
Summary
Chapter 2: Hello, Platforms!
Building your first iOS application
Understanding Apple's MVC pattern
Using the iOS designer
Building your first Android application
Understanding Android activities
Xamarin's Android designer
Summary
Chapter 3: Code Sharing Between iOS and Android
Learning the MVVM design pattern
Comparing project organization strategies
Setting up a shared project
Working with portable class libraries
Using preprocessor statements
Simplifying dependency injection
Implementing Inversion of Control
Summary
Chapter 4: XamSnap - A Cross-Platform App
Starting our sample application concept
Developing our model layer
Writing a mock web service
Writing the ViewModel layer
Writing unit tests
Summary
Chapter 5: XamSnap for iOS
Understanding the basics of an iOS app
Xamarin.iOS Build Options
Using UINavigationController
Implementing the login screen
Using segues for navigation
Setting up UITableView
Adding a friends list screen
Adding a list of messages
Composing messages
Summary
Chapter 6: XamSnap for Android
Introducing the Android Manifest
Setting up Material Design
Adding a login screen
Using ListView and BaseAdapter
Implementing the friends list
Composing messages
Summary
Chapter 7: Deploying and Testing on Devices
iOS provisioning
Android device settings
Understanding the linker
Understanding AOT compilation
Avoiding common memory pitfalls
Summary
Chapter 8: Contacts, Camera, and Location
Introducing Xamarin.Mobile
Accessing contacts
Looking up GPS location
Accessing the photo library and camera
Summary
Chapter 9: Web Services with Push Notifications
Learning Windows Azure
Exploring Azure Functions
Using the Apple Push Notification service
Implementing Google Cloud Messaging
Summary
Chapter 10: Third-Party Libraries
The Xamarin Component Store
Porting existing C# libraries
Objective-C bindings
Java bindings
Using XPath in Java bindings
Summary
Chapter 11: Xamarin.Forms
Creating Hello World in Xamarin.Forms
Understanding the architecture behind Xamarin.Forms
Using XAML in Xamarin.Forms
Using data-binding and MVVM
Summary
Chapter 12: App Store Submission
Following the iOS App Store Review Guidelines
Submitting an app to the iOS App Store
Signing your Android applications
Submitting the app to Google Play
Tips for building a successful mobile app
Summary

Book Details

ISBN 139781786465412
Paperback292 pages
Read More

Read More Reviews