Xamarin Cross-platform Application Development - Second Edition

Develop production-ready applications for iOS and Android using Xamarin

Xamarin Cross-platform Application Development - Second Edition

Jonathan Peppers

1 customer reviews
Develop production-ready applications for iOS and Android using Xamarin
Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.90
RRP $26.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.90
$44.99
$29.99p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781784397883
Paperback298 pages

Book Description

Developing a mobile application for just one platform is becoming a thing of the past. Companies expect their apps to be supported on both iOS and Android, while leveraging the best native features on both. Xamarin's tools help ease this problem by giving developers a single toolset to target both platforms.

This book is a step-by-step guide to building real-world applications for iOS and Android. The book walks you through building a chat application, complete with a backend web service and native features such as GPS location, camera, and push notifications. Additionally, you'll learn how to use external libraries with Xamarin and Xamarin.Forms to create shared user interfaces and make app-store-ready applications. This second edition has been updated with new screenshots and detailed steps to provide you with a holistic overview of the new features incorporated in Xamarin 3. By the end of the book, you will have gained expertise to build on the concepts learned and effectively develop a market-ready cross-platform application.

Table of Contents

Chapter 1: Setting Up Xamarin
The Xamarin tools
Installing Xcode
Installing Xamarin
Choosing a Xamarin license
Setting up the Android emulator
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
Android activities
Xamarin's Android designer
Summary
Chapter 3: Code Sharing between iOS and Android
Learning the MVVM design pattern
Comparing project organization strategies
Working with Portable Class Libraries
Using preprocessor statements
Simplifying dependency injection
Implementing Inversion of Control
Summary
Chapter 4: XamChat – 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: XamChat for iOS
Understanding the basics of an iOS app
Using UINavigationController
Implementing the login screen
Using segues and UITableView
Adding a friends list screen
Adding a list of messages
Composing messages
Summary
Chapter 6: XamChat for Android
Introducing Android Manifest
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: Web Services with Push Notifications
Learning Windows Azure
Setting up your Azure account
Exploring Azure Mobile Services
Creating tables and scripts
Adding a backend to XamChat
Using the Apple Push Notification service
Implementing Google Cloud Messaging
Summary
Chapter 9: Third-party Libraries
The Xamarin Component Store
Porting existing C# libraries
Objective-C bindings
Java bindings
Summary
Chapter 10: Contacts, Camera, and Location
Introducing Xamarin.Mobile
Accessing contacts
Looking up GPS location
Accessing the photo library and camera
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 to make a successful mobile app
Summary

What You Will Learn

  • Learn Apple's MVC design pattern
  • Understand the Android activity lifecycle
  • Share C# code across platforms and call native Objective-C or Java libraries from C#
  • Get to grips with unit testing for mobile applications
  • Implement a web service with Azure Mobile Services
  • Deploy and debug your application on mobile devices
  • Submit your app to the Apple App Store and Google Play

Authors

Table of Contents

Chapter 1: Setting Up Xamarin
The Xamarin tools
Installing Xcode
Installing Xamarin
Choosing a Xamarin license
Setting up the Android emulator
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
Android activities
Xamarin's Android designer
Summary
Chapter 3: Code Sharing between iOS and Android
Learning the MVVM design pattern
Comparing project organization strategies
Working with Portable Class Libraries
Using preprocessor statements
Simplifying dependency injection
Implementing Inversion of Control
Summary
Chapter 4: XamChat – 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: XamChat for iOS
Understanding the basics of an iOS app
Using UINavigationController
Implementing the login screen
Using segues and UITableView
Adding a friends list screen
Adding a list of messages
Composing messages
Summary
Chapter 6: XamChat for Android
Introducing Android Manifest
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: Web Services with Push Notifications
Learning Windows Azure
Setting up your Azure account
Exploring Azure Mobile Services
Creating tables and scripts
Adding a backend to XamChat
Using the Apple Push Notification service
Implementing Google Cloud Messaging
Summary
Chapter 9: Third-party Libraries
The Xamarin Component Store
Porting existing C# libraries
Objective-C bindings
Java bindings
Summary
Chapter 10: Contacts, Camera, and Location
Introducing Xamarin.Mobile
Accessing contacts
Looking up GPS location
Accessing the photo library and camera
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 to make a successful mobile app
Summary

Book Details

ISBN 139781784397883
Paperback298 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Xamarin Cross-platform Application Development Book Cover
Xamarin Cross-platform Application Development
$ 26.99
$ 18.90
Xamarin Essentials Book Cover
Xamarin Essentials
$ 26.99
$ 18.90
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
C# 6 and .NET Core 1.0: Modern Cross-Platform Development Book Cover
C# 6 and .NET Core 1.0: Modern Cross-Platform Development
$ 39.99
$ 28.00
Learning Xamarin Studio Book Cover
Learning Xamarin Studio
$ 23.99
$ 16.80
Mastering Object-oriented Python Book Cover
Mastering Object-oriented Python
$ 26.99
$ 18.90