Develop Android app using C#

后端 未结 7 1308
一向
一向 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

    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.

提交回复
热议问题