JP29
JP29

Reputation: 625

How does Mono for Android work and what's the relation between C# and Dalvik?

I'm trying to find some information on how the C# implementation of Android actually works.

Is it C# -> Java -> Bytecode -> Dalvik: i.e. does C# get converted to Java before the process happens between Bytecode and Dalvik?

Or is it C# -> Dalvik?

Upvotes: 2

Views: 778

Answers (1)

Lex Li
Lex Li

Reputation: 63203

Your guess is wrong. It is more similar to .NET/COM interop where wrappers are used across the boundary. So at runtime there are two VMs, Dalvik and Mono CLR running at the same time,

Mono for Android
(source: tirania.org)

There is a lot more information you can dig up from Miguel's blog such as http://tirania.org/blog/archive/2011/Apr-06.html

The C# to Dalvik solutions do exist, such as dot42 and RemObjects C#.

Upvotes: 4

Related Questions