Reader small image

You're reading from  Mobile DevOps

Product typeBook
Published inMar 2018
Reading LevelIntermediate
PublisherPackt
ISBN-139781788296243
Edition1st Edition
Languages
Concepts
Right arrow
Authors (2):
Rohin Tak
Rohin Tak
author image
Rohin Tak

Rohin Tak is a mobile and web development enthusiast with expertise in and several years of experience of .NET technologies. Professionally, Rohin has worked for IBM and OnMobile Global as a .NET developer and Xamarin developer respectively. Rohin is now working as a senior software engineer at LeadSquared, one of the fastest growing sales and marketing automation solutions in India. In his spare time, Rohin is mostly found trekking in the Himalayas and exploring new places around the globe.
Read more about Rohin Tak

Jhalak Modi
Jhalak Modi
author image
Jhalak Modi

Jhalak Modi is a DevOps engineer with a deep interest and expertise in implementing large-scale cloud, big data, CI/CD, and automation solutions on a variety of public/private/hybrid clouds, as well as on-premises. She is an AWS Certified Solutions Architect and DevOps professional with more than 10 certifications in trending technologies. She is also a public speaker at AWS events, universities, meet-ups, and corporate trainings. Currently, working with KOGENTiX, Singapore, she has previously worked with Wipro Technologies and Electromech Corporation.
Read more about Jhalak Modi

View More author details
Right arrow

Cross-Platform Mobile App Development with Xamarin

Xamarin is a platform that enables developers to create cross-platform applications on Android, iOS, Window, and other platforms, by using the same source code and the same integrated development environment (IDE).

History of Xamarin

Xamarin was started as an experiment to try and develop a version of .NET for Linux in early 2000, and was first known as an open source project called Mono.

Later, the same project was developed and supported by a new company called Xamarin, which was created by the very first developers of Mono, and was also known as MonoTouch and Mono for Android.

Development of Mono continued and it was later renamed Xamarin, which supported Android and iOS app development.

Xamarin has now been acquired by Microsoft and is developed and supported as one of the products offered by Microsoft with great integration with the existing IDE, Visual Studio, and it even has its own IDE, called Xamarin Studio, which is available for both Mac and Windows.

Why you should learn Xamarin

Well, there are many scenarios where Xamarin can save the day, and in some cases literally months.

Let's say you have an idea for a mobile application that you want to develop. Of course, you want it to be developed soon and get it to market. But there are some small challenges and decisions that you should overcome or decide on before you dive into your development process.

Let's have a look at those challenges:

  • Choose mobile platforms to target: This is a very important part in the planning phase of our application. The mobile platform market is divided into major players, such as Android, iOS, and Windows. To get the most out of our application, we will want it to be accessible and available to the majority of users out there.
  • Learn a platform-specific coding language or have platform-specific developers in your team: Now, let's...

Installing Visual Studio and Xamarin on Windows

To install Visual Studio and Xamarin on a Windows machine, follow these steps:

  1. Go to https://www.visualstudio.com/downloads/.
  2. When you open the preceding URL in a browser, you'll get a screen like this:
  1. You can see there are several editions of Visual Studio available for developers.
  2. You can choose the version best suited to your requirements. If you just want to learn Xamarin using Visual Studio, or if you are an individual developer looking for a free version, then Visual Studio Community Edition is best suited for you.
  3. Click on Free download provided under Visual Studio Community 2017.
  4. You should get a Visual Studio installer file downloaded on your computer.
  5. Open the installer file and you should see a screen like this:
  1. Click on the Continue button to begin the installation process.
  2. It can take some time to load the...

Setting up our Android Virtual Device for development

Android Emulator will enable us to test our Android application on a computer and we will not require an actual device to test.

  1. Let's click on Tools | Android | Android Emulator Manager:
  1. To make this process easier and simpler, we'll start with the existing mobile templates available for Android Emulator.
  2. Go to the Device Definitions tab shown in the following screen. Once you reach the Device Definitions screen, scroll down until you see Nexus devices in the list:
  1. Select the Nexus device of your choice and click on the Create AVD button on the right-hand side.
  1. Next, you should get a window such as the following, where you can customize your Android Emulator to your requirements:
  1. Fill in all the required details. You can refer to the preceding screenshot for help. Once you click OK, AVD Manager will create...

Summary

In this chapter, we learned about the brief history of Xamarin and why it's a great tool for developers looking for cross-platform mobile app development.

We also learned how to install Visual Studio and Xamarin on a Windows machine, along with how to create an AVD for testing our app.

In the next chapter, we will learn about basic application fundamentals and create our first Android application using Xamarin.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Mobile DevOps
Published in: Mar 2018Publisher: PacktISBN-13: 9781788296243
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.
undefined
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 $15.99/month. Cancel anytime

Authors (2)

author image
Rohin Tak

Rohin Tak is a mobile and web development enthusiast with expertise in and several years of experience of .NET technologies. Professionally, Rohin has worked for IBM and OnMobile Global as a .NET developer and Xamarin developer respectively. Rohin is now working as a senior software engineer at LeadSquared, one of the fastest growing sales and marketing automation solutions in India. In his spare time, Rohin is mostly found trekking in the Himalayas and exploring new places around the globe.
Read more about Rohin Tak

author image
Jhalak Modi

Jhalak Modi is a DevOps engineer with a deep interest and expertise in implementing large-scale cloud, big data, CI/CD, and automation solutions on a variety of public/private/hybrid clouds, as well as on-premises. She is an AWS Certified Solutions Architect and DevOps professional with more than 10 certifications in trending technologies. She is also a public speaker at AWS events, universities, meet-ups, and corporate trainings. Currently, working with KOGENTiX, Singapore, she has previously worked with Wipro Technologies and Electromech Corporation.
Read more about Jhalak Modi