MonoDroid VS Java in android development?

前端 未结 6 632
轻奢々
轻奢々 2021-01-17 16:57

I know C# rather well and just love Visual Studio as IDE. :) Yet now I want to start developing for android...

I found out about MonoDroid and wanted to ask if it ha

相关标签:
6条回答
  • 2021-01-17 17:40

    Much of the documentation available is in Java: so if you run into difficulties with phone behavior when using MonoDroid you won't really find that much help or debugging information so you may want to stick with Eclipse.

    0 讨论(0)
  • 2021-01-17 17:41

    If you will write in c# anyway you will be have to wrap it into a Java code, so what's the point ? Also you may head with a very difficult issues while trying to understand the APIs who written for Java programming...

    0 讨论(0)
  • 2021-01-17 17:50

    I've been worrying about the same thing - productivity in C# instead of playing with an unfamiliar language, vs developing how the OS developers intended it to be.

    Its easy to list pros vs cons -

    pros (of monodroid, for C# developers)

    • familiar dev environment, can develop using Visual Studio
    • C# instead of Java
    • Reusable code assets - you can use a lot of code in your iphone project or Windows phone 7 project using monotouch and the WP7 SDK.

    cons -

    • debugging could be difficult, due to lack of api documentation from Google. Will have to depend solely on monodroid documentation.
    • there could be a lag when it comes to latest cutting edge features - safe to assume that the monodroid team will require some time to wrap around the latest android features every time there is a new OS release
    • availability of libraries - I am not sure how you can use the open source libraries that would have evolved around the android platform, that could cut down on development time
    0 讨论(0)
  • 2021-01-17 17:54

    Here are some points that you can mull over:

    1. Android applications are predominately written with Java. The Android SDK itself is natively written in Java.

    2. Working in Mono may not provide all the functionality available in the Java SDK.

    3. If you are a C# Developer you wont be able to find, in Java, some of the (cool) features available in C# (like Property Delegates etc).

    4. Code written in .NET can be re-used for other environments - this may save a lot time that would have been spent learning a new language/environment (like Objective C), and coding in it.

    5. .NET extends the Android development stack with it's existing libraries and API's.

    I think both are good for certain reason. It will be very hard to say which one is preferable for Android development - in the end that is up to you too decide.

    0 讨论(0)
  • 2021-01-17 18:00

    There's a lot more than just a set of wrappers running under davlick, truth to be told, there is much more of a horizontal relationship between MonoDroid and Android;

    enter image description here

    When did using the same language as the OS developers become a big issue? There's lots of C++ programmers wondering how to use BSD or SVR5 and many C programmers who want to know what the heck to do on Windows++...

    0 讨论(0)
  • 2021-01-17 18:01

    Also note that any release build using monodroid adds an additional 4mb to the apk filesize and increases app startup time with a few seconds.

    For simple apps this can mean a 500-800% increase in filesize - whic is pretty bad in my book.

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