Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Xamarin 4.x Cross-Platform Application Development

You're reading from   Xamarin 4.x Cross-Platform Application Development Develop powerful cross-platform applications with Xamarin

Arrow left icon
Product type Paperback
Published in Dec 2016
Publisher
ISBN-13 9781786465412
Length 292 pages
Edition 3rd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Jonathan Peppers Jonathan Peppers
Author Profile Icon Jonathan Peppers
Jonathan Peppers
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Xamarin Setup FREE CHAPTER 2. Hello, Platforms! 3. Code Sharing Between iOS and Android 4. XamSnap - A Cross-Platform App 5. XamSnap for iOS 6. XamSnap for Android 7. Deploying and Testing on Devices 8. Contacts, Camera, and Location 9. Web Services with Push Notifications 10. Third-Party Libraries 11. Xamarin.Forms 12. App Store Submission

Understanding Xamarin

Xamarin has developed three core products for developing cross-platform applications: Xamarin Studio, Xamarin.iOS, and Xamarin.Android. Xamarin Studio is a C# IDE, while Xamarin.iOS and Xamarin.Android are the core tooling that enable C# applications to run on iOS and Android, respectively. These tools allow developers to leverage the native libraries on iOS and Android, and are built on the Mono runtime.

Mono, an open source implementation of C# and the .NET framework, was originally developed by Novell to be used on Linux operating systems. Since iOS and Android are similarly based on Linux, Novell was able to develop MonoTouch and Mono for Android as products to target the new mobile platforms. Shortly after their release, a larger company acquired Novell, and the Mono team left to form a new company aimed primarily at mobile development. Xamarin was founded to focus on these tools for developing with C# on iOS and Android.

Getting a development machine ready for cross-platform application development can take some time. And to make matters worse, Apple and Google both have their own requirements for development on their respective platforms. If you plan on developing on Windows with Visual Studio, your setup will be a bit different than on Mac OS X. Keep in mind that iOS development on Windows requires a Mac on your local network. Let's go over what needs to be installed on your machine.

The building blocks for Xamarin development on Mac OS X are as follows:

  • Xcode: Apple's core IDE for developing iOS and Mac applications in Objective-C
  • The Mono runtime for Mac: This is required for compiling and running C# programs on OS X
  • Java: This is the core runtime for running Java applications on OS X
  • Android SDK: This contains Google's standard SDK, device drivers, and emulators for native Android development
  • Xamarin.iOS: This is Xamarin's core product for iOS development
  • Xamarin.Android: This is Xamarin's core product for Android development

The required software for Xamarin development on Windows are as follows:

  • Visual Studio or Xamarin Studio: Either IDE will work for Xamarin development on Windows.
  • .NET Framework 4.5 or later: This comes with Visual Studio or recent versions of Windows.
  • Java: This is the core runtime for running Java applications on Windows.
  • Android SDK: This contains Google's standard SDK, device drivers, and emulators for native Android development.
  • A Mac on your local network set up for Xamarin.iOS development: Apple requires iOS development to be done on OS X as part of their licensing agreement. A Mac will need to be set up for Xamarin.iOS development as listed above.
  • Xamarin for Windows: This is Xamarin's core product for Windows; it includes both Xamarin.Android and Xamarin.iOS.

Each of these will take some time to download and install. If you can access a fast Internet connection, it will help speed up the installation and setup process. With everything ready to go, let's move ahead step by step and, hopefully, we can skip a few dead ends you might otherwise run into.

You have been reading a chapter from
Xamarin 4.x Cross-Platform Application Development - Third Edition
Published in: Dec 2016
Publisher:
ISBN-13: 9781786465412
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image