适用于Android的Mono-它是如何工作的? [英] Mono for Android - How It works?

查看:114
本文介绍了适用于Android的Mono-它是如何工作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现Xamarin应用程序在Android上的Mono runtinme中运行,并且一切都传递给了Dalvik.但是我不能不明白的是,该应用程序如何在Mono中运行,而普通的应用程序如何在Dalvik中执行. Mono应用程序的不同之处在于它可以在Mono中运行,而不能在Dalvik中运行.

I found that Xamarin apps run in Mono runtinme on Android, and things get passed to Dalvik. But what I can not understant is how is it possible that app is running in Mono, but normal app are executed in Dalvik. What is so different in Mono app that it runs in Mono and not Dalvik.

Mono如何与Dalvik处于同一水平?我认为Mono应该以某种方式存储在Dalvik中运行的应用程序中.

How can Mono be on the same level as Dalvik? Mono should be somehow stored in the app which runs in Dalvik, I think.

请向我解释这怎么可能,对不起我的语言不好.

Please explain to me how is it possible, and sorry for my bad language.

推荐答案

xamarin开发的应用程序具有mono运行时,它将它带到设备上.该应用程序apk包含.net中间代码p代码,这显然是Dalvik无法理解的.

An app developed by xamarin has the mono runtime which it takes with it onto the device. The app apk contains .net intermediate code, p-code, which obviously is not Dalvik understandable.

Xamarin.Android开发人员可以通过调用他们知道的.NET API(用于低级访问)来访问操作系统中的各种功能,也可以使用Android名称空间中公开的类(它们提供了到Java API的桥梁)来访问操作系统中的各种功能.被达尔维克暴露了.

Xamarin.Android developers access the various features in the operating system either by calling into .NET APIs that they know (for low-level access) or using the classes exposed in the Android namespaces which provides a bridge to the Java APIs that are exposed by Dalvik.

http://docs.xamarin.com/guides/android/under_the_hood/architecture/在这里您可以找到更多详细信息.

http://docs.xamarin.com/guides/android/under_the_hood/architecture/ this is where you can find more details.

这篇关于适用于Android的Mono-它是如何工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆