CAD controls, CAD plug-ins tutorial: Android Development using controls-development environment building

Source: Internet
Author: User



    Android Development using controls get started-environment building2014-12-24 09:57 14 people read Comments (0) Favorites Edit Delete CAD controls. CAD three-dimensional control, mobile control Android development control

Software name (, Dream, think.) CAD, controls)

1. Environment Construction: 3

1.1, installing Eclipse 3

1.2, download JDK 3

1.3, download Android SDK 5

1.4, installing ADT plug-ins for Eclipse 8

1.5, run Eclipse setup Android ADT Plugin

1.6, NDK installation

1.7, installation Cygwin

1.8, creating a virtual machine

1.9, compiling, and running controls Android example

1, Environment construction :

Note: Some of the articles, such as the Android development site need to set up a proxy to access

1.1. Install Eclipse

As follows

:

After downloading, we unzip it to C:\Android\Eclipse as follows:

1.2. Download JDK

Click the link below to download the installer

After installing the directory, and files, note now that the latest JDK installation does not support WinXP, it is recommended to use the win7 system :

We installed the C:\Android\JDK

You will then need to Create a new java_home by using the environment variables, such as "My Computer", "Properties", "Advanced" environment variable, which points to the JDK directory , as follows

1.3. Download the Android SDK

This is the official website, enter and follow the process to go, choose the appropriate for their platform (here is Windows) SDK package download.

We do not use Android Studio, click stand-alone SDK Tools to continue :

After downloading the direct decompression can be used.

Let's unzip it and put it in the C:\Android\adt directory.

To use the SDK tools directly in the DOS console, you can add the SDK's directory to the Windows PATH environment variable: On the desktop, right-click My Computer, tap properties > Advanced > Environment variables. Double-click the path entry in system variables to add the full path to the tools directory in the Android SDK here

Create the C:\Android\Eclipse\eclipse.exe shortcut to the desktop as follows:

1.4. Installing the ADT plugin for Eclipse

Run Eclipse.exe

A. Select Help > Install New software.

B. Click the Add button

In the popup dialog box, enter the URL :

Click OK button

C. Select all, click Next to install

Installation process :

1.5. Run Eclipse setup Android ADT Plugin

Restart Eclipse for Android SDK settings:

Select "Windows" > "Preferences ..." to open the Edit Properties window

Select Android Properties panel

Join the Android SDK directory (click "Browse ..." to make a selection, this is the directory where "Android-sdk" is located)

Such as:

Run SDK Manager.exe to install the relevant files for Android development.

Select the following, then click "Install"

1.6. NDK Installation

Control using the android-ndk-r6-crystax-2, download from our official website, Address: Address:

Crystax official website:

If you cannot download, please contact us by searching the official website

Unzip the NDK to C:\Android\OdaNdk .

Such as:

1.7, installation Cygwin

Since most of the NDK development involves compiling and running in the GCC environment, the Linux Simulated compilation environment needs to be simulated in the Windows environment :
Download setup.exe file. (using the system, download x86_64)

Run Setup-x86.exe, installed in C:\Android\cygwin:

Modify

C:\Android\cygwin\etc\profile

Set PATH variables

To set the Windows path variable, it is convenient to find Cygwin, as follows:

1.8. Create a virtual machine

Run "Windows"+"Android Virtual Device Manager",

On the interface, create a new virtual machine with the following settings :

1.9. compile and run the control Android example

Control Examples :

Decompression control of the trial), we extracted it to C:\MxDrawInstall\, as follows:

Switch the Eeclipse workspace and switch the workspace to the control installation location: C:\MxDrawInstall\MxDraw60Android\SRC\MxDraw6.0\AndroidSample\ MXDRAWSUPPORTDWG

Command the following screenshot:

Import the control example as follows:

"File", "Import ..."

For example, select, "Existing Android Codeinto Workspace" Import C:\MxDrawInstall\MxDraw60Android\SRC\MxDraw6.0\AndroidSample \mxdrawsupportdwg\mxdrawtestactivity Example

Set up the NDK directory, window= "preferences"

Add C + + support for the project, right-click on the project name, and on the right-click menu, select: "Androids Tools" +"Add Native ..." as follows:

Click will pop up a simple setup interface, Lib fill in : Mxdrawjin

Disable The syntax parsing of C + + and discover that a bunch of errors were analyzed, but the actual is not an error, so disable.

As follows:

Compile the project, "project", "Bulid all", should be able to compile the project successfully.

To increase the run configuration, click :

The interface settings are as follows:

Click on the "Run" effect as follows:

So far, Android's development environment has been built.

CAD controls, CAD plug-ins tutorial: Android Development using controls-development environment building

Related Article

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.