Develop Android app using C#

后端 未结 7 1218
一向
一向 2020-11-30 17:45

Is it possible to write an android app using C#? Is there an API or something? Is it free for personal and commercial development?

What do I need to install to have

相关标签:
7条回答
  • 2020-11-30 18:20

    You could use Mono for Android:

    http://xamarin.com/monoforandroid

    An alternative is dot42:

    http://www.dot42.com/

    dot42 provides a free community licence as well as a professional licence for $399.

    0 讨论(0)
  • 2020-11-30 18:20

    Having used Mono, I would NOT recommend it. The Mono runtime is bundled with your app, so your apk ends up being bloated at more than 6MB. A better programming solution for C# would be dot42. Both Mono and dot42 are licensed products.

    Personally, I would recommend using Java with the IntelliJ IDEA dev environment. I say this for 3 reasons:

    1. There is so much Java code out there for Android already; do yourself a favour and don't re-invent the wheel.
    2. IDEA is similar enough to Visual Studio as to be a cinch to learn; it is made by JetBrains and the intelli-sense is better than VS.
    3. IDEA is free.

    I have been a C# programmer for 12 years and started developing for Android with C# but ended up jumping ship and going the Java route. The languages are so similar you really won't notice much of a learning curve.

    P.S. If you want to use LINQ, serialization and other handy features that are native to C# then you just need to look for the equivalent java library.

    0 讨论(0)
  • 2020-11-30 18:20

    There are indeed C# compilers for Android available. Even though I prefer developing Android Apps in Java, I can recommend MonoForAndroid. You find more information on http://xamarin.com/monoforandroid

    0 讨论(0)
  • 2020-11-30 18:30

    I have used the Unity 3D game engine for developing games for the PC and mobile phone. We use C# in this development.

    0 讨论(0)
  • 2020-11-30 18:33

    You should try something running Mono (its compatible with .NET).

    For game development, I recommend unity: http://unity3d.com/

    for general aplications: http://xamarin.com/monoforandroid

    0 讨论(0)
  • 2020-11-30 18:40

    Here is a new one (Note: in Tech Preview stage): http://www.dot42.com

    It is basically a Visual Studio add-in that lets you compile your C# code directly to DEX code. This means there is no run-time requirement such as Mono.

    Disclosure: I work for this company


    UPDATE: all sources are now on https://github.com/dot42

    0 讨论(0)
提交回复
热议问题