Installing for Android

Installation for Windows


Installing Mono for Android on Windows

Brief

This article walks through the installation steps and configuration details required to install Mono for Android. By the end of this article, we will have a working Mono for Android installation integrated into MonoDevelop and/or Microsoft Visual Studio, and we’ll be ready to start building our first Mono for Android application.

Overview

The Mono for Android installer will automatically detect, download, and install any components required for completing the installation. This tutorial examines the installation and configuration steps required to install the Mono for Android platform and to get our development environment set up, including:
  • Downloading the Installer
  • Running the Installer
  • Configuring our IDE
  • Configuring any Additional Emulators

Downloading the Mono for Android Installer

Your first step is to download the Mono for Android Windows installer, which can be found at http://android.xamarin.com/DownloadTrial:
Untitled.png
If you’ve purchased Mono for Android, follow the download instructions in the e-mail you received with your purchase.

Running the Mono for Android Installer

To run the installer, simply double-click it. Also, on Windows it needs to be run with admin rights.
This is the first screen in the installation process. If you’re behind a proxy, configure network proxy settings by using the Click here to configure link near the bottom of this dialog:
Untitled1.png

Step 1 - Identify the required components

The first step required by the installer is to inspect the system to determine which, if any, required components are missing and need to be downloaded and installed:
Untitled2.png

Step 2 - Installing the Components

After identifying missing components, the Mono for Android installer downloads and executes the installers for the platform dependencies, as shown in this dialog:
Untitled3.png
During this part of the installation, you may be prompted to accept license agreements and/or to elevate the permissions necessary for individual components that are needed to complete installation, for example:
Untitled4.png

Step 3 - Completing the Installation

Once we’ve reached this step, we’re almost ready to begin developing a Mono for Android application. Select Close and continue on to the final step:
Untitled5.png

Step 4 - Configuring the Installation

Now that we’ve installed the components, we need to tell our IDE where to find them. MonoDevelop and Visual Studio both have configuration options that let us specify the Java and Android SDK locations.
During installation, the installer places the installed components in their default locations and configures the development environment with the appropriate path configuration. However, if we already had them installed or if we installed them in locations other than the default, then we must explicitly specify the paths to these components.

Configuring MonoDevelop
To configure SDK locations in MonoDevelop, navigate to Tools > Options in the Application menu bar, then select Other > SDK Locations from the left tree-view panel in the Options dialog:
Untitled6.png

Configuring Visual Studio
To configure the Visual Studio tools, navigate to Tools -> Options -> Mono for Android:
Untitled7.png

Configuring Additional Android Emulators

You can run the Android Simulator in a variety of configurations to simulate different devices. Each one of these configurations is created as a Virtual Device. By default, the Mono for Android installer will create a virtual device for each of the Android platforms registered by the installer. However, we can create our own custom virtual device configuration.
Virtual devices are configured via the Android Virtual Device (AVD) Manager. The AVD Manager can either be launched from the Android SDK Manager, or directly from MonoDevelop (if we’re using it).

Launching the AVD Manager from MonoDevelop

If we’re using MonoDevelop and have an open project, the AVD Manager can be launched directly by selecting Tools > Managed AVDs from the menu bar:
Untitled8.png

Launching the AVD Manager from the Android SDK Manager

We can launch the Android SDK Manager from the Start menu like this:
Untitled9.png
Once we have located and opened the Android SDK Manager, we can launch the AVD Manager by navigating to the top menu bar and then selecting Tools > Manage AVDs...
Untitled10.png

Creating a new Virtual Device

Once the AVD Manager is open, we can create a new virtual device by clicking New…
Untitled11.png
This should open the Create new Android Virtual Device dialog and allow us to configure our device by using this dialog:
Untitled12.png
Once we’re finished configuring the device, we can select Create AVD. We can then see that the device was created successfully with the hardware configuration options we specified by checking the dialog shown below:
Untitled13.png
That’s it! Now we’re all set up to use Mono for Android to create Android applications!

Comments

Popular posts from this blog

How to configure Glowroot with Liferay

How to Get Back Asus Zenphone 5 from Soft Brick

How to Unlock Boot Loader of Htc Explorer