C #/MONO getting started with developing Android applications (1)-(configure the mono for Android environment)

Source: Internet
Author: User
Tags android sdk manager

C #/MONO Android app developmentProgramGetting started (1)-(configure the mono for Android environment)

(I learned through automatic translation in combination with my own organization and practice)Install mono for Android on Windows

Install mono for Android on Windows

Summary

This article describes how to install mono for Android on Windows and how to configure the platform. At the end of this article, we will get a mono for Android environment integrated into monodevelop and/into Microsoft Visual Studio, and we are ready to start developing our first mono for Android Application.
Overview

 

Overview

The mono for Android installer will automatically detect, download, and install any required components. This tutorial describes how to install and configure mono for Android. Let's set the development environment, including:

    • Download Installer
    • Run the installer
    • Configured ide
    • Configure any additional Simulators
Download mono for Android on Windows the first step is to download the mono for Android installer, you can download on the official website: http://xamarin.com/trial

If you purchased mono for Android, please download the instructions in the email you received with your purchase.

Run the mono for Android Installation Wizard

To run the installer, double-click it.

This is the first screen during installation. If you are on a proxy, configure the network proxy settings by usingClick hereLink near the bottom of the dialog boxConfiguration:

Step 2-determine the required components

The first step for installation is to check which systems are required. If necessary components are missing, download and install them:

Step 2-download and install components (Slow speed)

After the installation wizard automatically detects the missing components, the mono for Android Installation wizard downloads mono and platform dependencies to execute the installation program, as shown in the dialog box:

In this part of installation, you may be prompted to accept the license agreement and/or complete installation required by individual components.

Step 2-Installation Complete

Once this step is achieved, we are almost ready to start developing an android application through mono for Android. Select "close" and continue the last step:

The installation is not very fast, but he automatically configures to find the android Directory, which is quite good as the Java JDK directory and is Chinese. It is quite cool !!!!

 

Step 4: configure the installation environment

Now, we have installed components, and we want to tell our ide where to find them. Configuration options are available in monodevelop and Visual Studio. You can specify the location of Java and Android sdks.

During the installation process, the installer is placed on the components installed in its default location, and the Development Environment configured in the appropriate path is configured. However, if we have already installed these components, If we install them outside of default, we must specify the path of these components.

 

Configure monodevelop options

 

To configure the SDK location in monodevelop, navigate toTools> optionsAnd then select"Other"> SDKFrom the left-side Tree ViewLocation:

Configuration on Visual Studio

To configure the Visual Studio tool, choose> Option>Mono for Android:

Configure additional Android Simulators

In multiple configurations, different devices can run on the android simulator. Create Virtual Devices for each of these configurations. By default, the android installation form creates a virtual device for each registered Android platform. However, you can create your own custom Virtual Device configurations.

Use Android Virtual Devices (AVD) to manage Virtual Device configurations. AVD management can be initiated from the android SDK manager or directly from monodevelop (if we are using it ).

Start AVD manager of monodevelop

If we use monodevelop and have an open project, you can directly start AVD management.> Manage avdsSelect"Tool":

Run AVD manager from Android SDK Manager

We can start Android SDK management from the "Start" menu:

Once we find and open the android SDK manager, we can navigate to the top menu bar and choose start tools> Manage avds...

Create a new Virtual Device

AVD management is open. You can click to create a new Virtual Device...

This should be enabledCreate a new Android Virtual Device"Dialog box, let's configure our devices to use this dialog box:

Once we complete the device configuration, we can chooseCreated AVD. Then, we can see that the device is successfully created on the hardware configuration. We check the options specified in the following dialog box:

This is it! Now, we are all set to use to createMono for AndroidDevelop Android applications!

Summary

In this articleArticleWe have studied how to set and installMono for Android. We also see some different ways to configure our platform to install monodevelop and Visual Studio. We will show you how to use the android Virtual Device Manager to define your android SDK simulator configuration.

In the next tutorial, we will useMono for Android, CreateOur first Android ApplicationProgram.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.