Introduction to Xamarin and xamarin

Source: Internet
Author: User
Tags android sdk manager

Introduction to Xamarin and xamarin
1.Install

1) use the standard installation process (JDK1.6-> Android SDK-> NDK-> Xamarin Studio-> Xamarin Visual Studio)

2) The Android SDK Manager can update the source at any time. The source address of an image is mirrors.neusoft.edu.cn, ubuntu.buct.cn, Port: 80, and the directory structure of the Android SDK, android related resources (http://ubuntu.buct.edu.cn/android/repository ).

3) Windows cracking process: Replace the IDE Dll in two locations. One is VS's Common, and the other is Xamarin studio's bind to replace the corresponding mandroid.exeand mtouch.exe.

4) Mac client cracking process, Mac only responsible for IOS-related things, do not consider the development of Android on the Mac end, the first thing to install includes: MonoFramework-MDK-3.12.1.3.macos10.xamarin.x86.pkg; monotouch-8.8.2.4.pkg; XamarinStudio-5.8.2.7-0.dmg; (make sure to match the version number. Currently, this series of versions matches 3.9.525 on Windows)

Three things should be replaced after installation:/Developer/MonoTouch/usr/bin/mtouch-64;

After the Mtouch-64 is replaced, run the command on the terminal: chmod a + x/Developer/MonoTouch/usr/bin/mtouch-64

Replace/Applications/Xamarin Studio. app/Contents/Resources/lib/monodevelop/AddIns/Xamarin. Ide/Xamarin. Components. Ide. dll

Last replacement

/Applications/Xamarin. iOS Build Host. app/Contents/MonoBundle/Xamarin. Components. Ide. dll

2. Simulator

1) You can use Xamarin android Player instead of the Android standard simulator. It is said that the performance is better, but the copyright has not been tested.

2) if you use a standard simulator, you can configure hardware acceleration.

A) first, your CPU must support Intel virtualization technology.

B) Use the Android SDK to download the system image of the corresponding x86 architecture

C) download the latest HAXM virtual engine from the Intel official website or use the SDK to download it.

Folder

Function

Components

Log on to the Xamarin account and download some official components.

Assets

Stores fonts, local databases, configuration files, and other local resources.

Properties

In addition to the general assembly version number and other information, including the permission description file AndroidManifest. xml of the Android Program

Resources

Package the Strings, images, layout, and other resource folders. The visual interface of the program is also under the folder, and a aboutresources.txt Resource Description file is also included.

4.Android applicationsLogical Structure
Unlike traditional applications, Android applications do not have a single point of entry. Applications are closely related to the Android operating system. The operating system can load application processes into memory to activate applications at any time. Therefore, an application has an Activity concept. An application consists of many activities.
 
Activity Features:
3)Application

Xamarin. Forms

Xamarin. iOS & Xamarin. Android

Focus on simple data display

The program will use special Interaction

Quick prototyping and conceptual programs

Well-designed UI Program

Only a few special platform Functions (APIS) are used)

Many special platform Functions (APIS) are used)

Shared code is more important than user UI

User UI is more important than shared code

4)XamlRelated

OnPlatForm

5)FormsFQA

When you run the Forms Program for the first time, the system prompts "unable to link to the remote server". For more information, see here.

Verify the project is selected to be deployed in the Solution Configuration Manager.

6.MvvmRelated

Three frameworks: MvvmCross, MvvmLight, and XamarinFormsLab

Http://blog.galasoft.ch/posts/2014/05/mvvm-light-v4-4-with-xamarin-android-support? Utm_source = tuicool

MvvmLight For Android requires the Android version to be later than 2.3 (API10 ).

7.FQA

1) a long-standing problem occurs when Layout cannot be loaded on the Android design interface and a network error is reported because the Android SDK upgraded the latest Tools to 24.3, the latest SDK may cause this error in Xamarin. If you use the latest Xamarin, this error has been fixed. If you do not want to update Xamarin, You need to downgrade the SDK.

2) the screen rotation function is restricted. You can only use a portrait or landscape screen for a specific program. For details, see chapter 5 of Xamarin Forms Preview Edition 2, 88 (PDF 101.

8.Other resources

Installation, cracking: http://www.jianshu.com/p/c67c14b3110c

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.