1, must be installed in order?
Install the JDK first, then install the Android SDK
Reason: The Android SDK uses the Java language
Install Android SDK First, then install Android NDk
Cause: The NDK is just a native toolkit developed on the SDK basis, used to write and compile code for some C + +
Install Xamarin First, then Xamarin for Visual Studio
Cause: Xamarin is an IDE that develops mobile programs, and Xamarin for Visual Studio is a plug-in that Xamarin provides for Visual Studio. With this plugin, you can develop mobile applications directly in Visual Studio.
2, why do you want to install these tools?
Put the above (1) in the order of the push backwards, you understand the "development of Xamarian Program, why to install these tools?" ”
3. What are the differences and contacts between Xamarin Studio and Xamarin for studio?
Xamarin Studio is an IDE
Xamarin for Studio is a plugin
Xamarin Studio can develop mobile apps directly
Visual Studio only has the Xamarin for studio plug-in to develop mobile applications in Visual Studio
4, why do you want to configure the environment?
Set path
In the cmd command line to start an application, the system will first look in the current directory, if not the system variable path specified by the paths to find
Set Classpath
The purpose of setting up classpath is to tell the Java execution Environment which directories can be used to find the classes or packages that you need to execute the Java program.
5. What the Android SDK does with Xamarin studio to establish a connection
If you are using Eclipse development:
You need to install an ADT (Android development Tools) plugin for Eclipse so that eclipse can connect to the Android SDK, start the Android emulator in Eclipse, and debug the program.
But how Xamarin Studio is connected to the Android SDK is unclear
6, Jdk,android sdk,android Ndk,xamarin,xamarin for VS, what is the schema relationship between them?
Above 5 points, has answered this question
One, JDK
1, what is the SDK
Prelude: what is the SDK
SDK is a software development kit (software Development Kit) that provides some of the application interface API's files for some programming language
2, what is JDK
JDK is the Java language Software Development Kit (SDK)
If you do not have a JDK, you cannot compile the Java program, if you only run Java programs, make sure that the appropriate
The JRE
JRE corresponds. NET Platform
JVM corresponds to CLR
3, composed
javac– compiler, turn source program into bytecode
jar– Packaging tool to package related class files into one file (similar to DLLs in Windows)
java– running the compiled Java program (. class suffix)
Jdb–java Debugger
appletviewer– Applet Browser, a Java browser that executes Java applets on HTML files
4, version
Version |
Release date |
JDK 1.1.4 |
1997-09-12 |
JDK 1.1.5 |
1997-12-13 |
JDK 1.1.6 |
1998-04-24 |
JDK 1.1.7 |
1998-09-28 |
JDK 1.1.8 |
1999-04-08 |
5, download
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
6, Environment configuration
Java_home = C:\Program files\java\jdk1.8.0_20
PATH =%java_home%\bin; %java_home%\jre\binset
CLASSPATH =.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar
Two, Android SDK
1, what is Android
Android, the Chinese name "Android", is a Google company developed for mobile phones and tablet operating system
Development language: C + + (bottom) Java, etc. (Application layer)
Android structure, such as
From the architecture view, Android is divided into four layers, from the upper to the lower levels:
Application Layer
Application Framework Layer
System run-level library
Linux kernel layer
2, Android application development, in which aspects (very important)
Android Development Four components:
Activity: Used for performance functions
1 activities corresponding to 1 screens
1 screens of quite 1 pages
Service: Running the service in the background, not providing interface rendering
Start playing music
Then play QQ
Discover music continues to play
In fact, this play is controlled by the service that plays the music.
Broadcast Receivers (BROADCASTRECEIVER): for receiving broadcasts
Broadcast is a widely used mechanism for transmitting information between applications. and
Broadcastreceiver is a class of components that are filtered to receive and respond to a sent broadcast
For example:
When the phone calls into this external event, the Broadcastreceiver can be used for processing.
When a program is downloaded successfully, it can still be processed using Broadcastreceiver.
Content Provider: Supports storing and reading data in multiple applications, equivalent to a database
In Android, the protection of data is very strict, in addition to the data placed on the SD card,
A database, files, and other content held by an application are not allowed to be accessed directly.
Andorid of course not really making every application an island, it has a window for all applications,
This is the content Provider
3, Android suffix
APK is the suffix of Android app, is the androidpackage abbreviation, namely Android install package (APK)
APK is a file format similar to Symbian SIS or SISX. Install the APK file by uploading it directly to the Android emulator or Android phone.
APK file and Sis, the Android SDK compiles the project into a setup file, in the format of APK.
The apk file is actually in zip format, but the suffix name is modified to APK,
After extracting through unzip, you can see the Dex file,
Dex is the full name of the Dalvik VM executes, the Android Dalvik execution program, not the bytecode of Java me but the Dalvik byte-code
4, what is the Android SDK
Android SDK refers to Android-specific software development Kit
The Android SDK provides the API libraries needed to develop Android applications and the development tools needed to build, test, and debug Android applications
5, version
6, download
Https://developer.android.com/sdk/installing/index.html
7, installation
Install JDK5.0 above, then install Android SDK reason: The Android SDK uses the Java language
Android SDK does not need to install, after downloading, directly decompression can
8, Android SDK Manage
Responsible for downloading or updating different versions of SDK packages
Use it to download, you need to first FQ Google
A,,FQ:
(1) In the native host file, add
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
(2) Check the selected options
b, download the relevant Android SDK package
C, create an AVD, run it
9, follow-up
If you are using Eclipse development:
You need to install an ADT (Android development Tools) plugin for Eclipse so that eclipse can connect to the Android SDK, start the Android emulator in Eclipse, and debug the program.
What the 10,android SDK does with Visual studio to make connections
Three, Android NDK
1, what is the NDK
NDK Native Developer Kit (Native Development Kit)
is a development tool based on the native program interface
Programs developed with this tool run directly in the local language, not virtual machines. As a result, only programs with virtual machine-based languages such as Java will have the native development kit
Principle:
The Java-based software NDK is dispatched through JNI, and because the Java language supports the call to C + + dynamic-link libraries, Java programs can execute some C-language code, which provides the potential for the use of the NDK
2, what is Android NDK
The Android SDK is based on Java implementations, but Google's virtual machine Dalvik supports JNI programming
Android NDK enables the Android platform to support C + + development
This development kit will make it possible to compile code from Android JNI C/D + + into so library
and package so with the Java app as an apk
3, version
Code Name |
Version |
API level |
Lollipop |
5.1 |
API level 22 |
Lollipop |
5.0 |
API level 21 |
KitKat |
4.4-4.4.4 |
API level 19 |
Jelly Bean |
4.3.x |
API level 18 |
Jelly Bean |
4.2.x |
API level 17 |
Jelly Bean |
4.1.x |
API Level 16 |
Ice Cream Sandwich |
4.0.3-4.0.4 |
API level, NDK 8 |
Ice Cream Sandwich |
4.0.1-4.0.2 |
API level, NDK 7 |
Honeycomb |
3.2.x |
API level 13 |
Honeycomb |
3.1 |
API Level 6, NDK |
Honeycomb |
3.0 |
API level 11 |
Gingerbread |
2.3.3-2.3.7 |
API Level 10 |
Gingerbread |
2.3-2.3.2 |
API Level 9, NDK 5 |
Froyo |
2.2.x |
API Level 8, NDK 4 |
Eclair |
2.1 |
API Level 7, NDK 3 |
Eclair |
2.0.1 |
API Level 6 |
Eclair |
2.0 |
API Level 5 |
Donut |
1.6 |
API level 4, NDK 2 |
Cupcake |
1.5 |
API Level 3, NDK 1 |
(No code name) |
1.1 |
API Level 2 |
(No code name) |
1.0 |
API Level 1 |
4, download
Http://developer.android.com/tools/sdk/ndk/index.html
5, installation
After downloading, directly unzip can
But finally, you need to configure the NDK's path location in Visual Studio
Four, gtk#
1, what is gtk#
gtk# Full name graphical User Interface Toolkit
Gtk# is a. NET Library, is a popular cross-platform graphical user interface Library (GUI) GTK + packaging
gtk# runs like Windows forms and WPF, in gtk#, Windows are based on Gtk.window, and small plug-ins (widgets, equivalent controls) are based on the Gtk.widget class.
Gtk# is released with the Mono project, so the best way to use it is to install mono (http://www.go-mono.com/mono-downloads/download.html)
2, download
http://www.mono-project.com/download/#download-win
Five, Xamarin Studio
1, what is Xamarin Studio
Xamarin Studio is an IDE that develops mobile applications
2, version
3, download
Http://xamarin.com/download
Six, Xamarin for Visual Studio
1, what is Xamarin for Visual Studio
Xamarin for Stududio is a plugin for Visual Studio, including Android and iOS.
It's a set of accessories that Xamarin provides for Visual Studio
Seven, Xamarininstaller
Xamarininstall is just a download installer, not a package
Installationmanifest.xml
This is the Setup profile for Xamarin, which records the required installation packages and versions.
Http://xamarin.com/installer_assets/v3/Windows/Universal//InstallationManifest.xml
Eight, cracked
Download Hack pack: Http://pan.baidu.com/s/1bnlc2vX
Password: 43DG, there are cracking steps
Nine, Configuration
1, environment variables
Configuring environment variables for JDK path and classpath
2, configuration of Visual Studio
Specify the path path for the Android SDK and Android NDK in Visual Studio
3, Android SDK Manager Debug Run
Remember that the version of Android is the same as the configuration in the Visual Studio project
4, think about why the above configuration
10, Xamarin Introduction
Xamarin is a mono-based platform that currently has the following products (see: http://xamarin.com/products):
- Xamarin Studio:ide, was renamed from the original MonoDevelop. Now downloaded from the MonoDevelop official website is also the Xamarin studio:http://monodevelop.com/. (Say MonoDevelop is also a branch of sharpdevelop development)
- Xamarin.ios: Formerly known as Monotouch, used to develop IOS apps and can be published on the App Store.
- Xamarin.mac: For developing MAC OS X applications, similar to Windows desktop apps.
- Xamarin.android: Formerly known as Monodroid/mono for Android, used to develop Android apps.
- Xamarin for Visual studio:visual Studio plug-ins, including iOS and Android, but currently only supports vs2010/vs2012.
- Xamarin Test Cloud: Testing your app to publish your application to the cloud on Xamarin, which automatically helps you test your app on hundreds of of devices.
- Component Store: The component store, which has a variety of fees/free controls available for download.
Introduction to Xamarin's installation tools