c#和java之间的不同开发android [英] different between c# and java to develop android

查看:115
本文介绍了c#和java之间的不同开发android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我将快速开发Android应用程序。我知道c#但我对Java一无所知。哪一个更好用。如果我使用c#,我可以用它来开发ios和windows手机的应用程序但是现在我只想在android中创建应用程序。

哪个c#平台更好,花更少的时间。我听说如果我想在c#中开发app,我应该使用Xamarim和mono。哪一个帮助我创建应用程序,如字典或应用程序,需要连接到服务器并快速检索一些信息。

解决方案

这里要问的重要问题是做你需要在多个平台上移植相同的应用程序吗?(Android / WP / iOS)



如果这个问题的答案是肯定的,那么C#然后Xamarin是一个非常好的选择。请记住,并非所有代码都适用于所有平台,您必须为每个平台重写应用程序的某些部分。如果您使用Xamarin,将会有一些代码可以跨平台重复使用。



如果您可以使用非本机应用程序,那么HTML5 / JavaScript可能就是最好的选择。如今,这成为大多数需要支持多平台的商业应用程序的默认选择,并且可能会对性能造成一定的影响。



现在如果您只对此感兴趣在开发Android应用程序时,您可能应该使用Java。 Java与C#没有什么不同。这是一个缺乏很多功能的哥哥(哥哥也许会自满)。但在这种情况下使用Java是最好的选择。



最终语言的选择应该基于应用程序要求而不是个人偏好。我个人爱上了C#,但也用Java和HTML5编写了Android应用程序,因为我的应用程序有一些要求。



PS 根据您的应用程序要求,我建议使用html5 / javascript。由于您需要与服务器进行通信,我认为使用Backbone marionette框架是您应用程序的最佳选择。我会选择它。


http://xamarin.com/download [ ^ ]



使用Xamarin可以好......已经通过Xamarin完成..

许多人也使用Mono ..基本上是根据你自己的方便和想法..

从一开始,开发一些东西,然后看..



快乐编码



问候

ANurag

hi
i am going to develop android app quickly. i know c# but i don't know anything about java. which one is better to use. if i use c#, i could use it to develop app for ios and also windows phone but right now i just want to create app in android.
which platform for c# is better and take less time. i heard that if i want to develop app in c# i should have to use Xamarim and also mono. which one help me to create app like Dictionary or app that need to connect to a server and Retrieve some info quickly.

解决方案

The important question to ask here is "Do you need the same application to be ported on multiple platforms? (Android/WP/iOS)"

If the answer to this question is yes then C# then Xamarin is a very good choice. Keep in mind that not all the code will work on all the platform, You will have to rewrite some parts of the application for each platform. There will be some code that will be reusable across platforms if you are using Xamarin.

If you can live with a non-native application then perhaps HTML5/JavaScript is the best choice. Nowadays this is becoming the default choice for most of the business apps which need the support for multiple platform and can compromise a bit with performance.

Now if you are only interested in developing android Apps then perhaps you should use Java. Java is not that different than C#. It is an elder brother who lacks a lot of features(elder brother got complacent perhaps). But using Java is the best choice in this case.

Ultimately the choice of language should be based on application requirements and not on personal preference. I personally am in love with C# but have written Android apps in Java and HTML5 too because my applications had some requirements for that.

P.S. based on your application requirements, I would suggest go with html5/javascript. Since you need to communicate to the server, I would say using Backbone marionette framework is the best option for your application. I would have chosen it.


http://xamarin.com/download[^]

Using Xamarin can be good...have done via Xamarin..
Many folks use Mono too..its basically upon your own convenience and thoughts..
Start with one, develop something and then see..

Happy coding

Regards
ANurag


这篇关于c#和java之间的不同开发android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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