What is the difference between html5 and xamarin?

I am a C # .NET developer.

I want to develop mobile applications that can be run on iphone, android and windows phones.

As I understand it now, www.xamarin.com offers a solution that can develop iphone and android using C #.

What is the difference between html5 and xamarin?

What technology should I use that I can develop once and run on all platforms?

+4
source share
4 answers

The main difference is that HTML5 works in the browser, but hamarin does not (as far as I have researched it). With HTML5, it's easier to develop on multiple devices. But xamarin, which creates its own applications, can access its own functions on your device (for example, notifications, etc.). But the downside is that xamarin is a little harder to get it to work on multiple devices. You also need to install your own application, the HTML5 application does not. So you have to ask yourself which application I want to make. In addition, something like an application that runs on all platforms does not yet exist. Some HTML5 frameworks offer great support (like JQmobile), but all platforms are nearly impossible.

+5
source

I think the best description of your choice would be between MonoTouch (created by Xamarin) and PhoneGap (which provides the native HTML5 shell). Both generate their own applications. Both work on multiple platforms. Both allow you to connect external Objective-C libraries.

If external libraries are needed - I think PhoneGap may be more platform independent than MonoTouch. I just did the iOS development, but I believe that the Android Mono libraries are structured somewhat differently, so it is not wise to have the same codebase for the user interface part of your application. But in this case, you can just stick with HTML5 and put all the code on the server.

If you need to connect in external libraries, I found PhoneGap much easier than MonoTouch. I can create a PhoneGap project in the same Xcode workspace as the rest of my code, and everything just compiles and debugs. In MonoTouch, I have several script files that make universal static libraries, and then linked through awkward gcc flags.

If you can stay in the HTML5 world, I would recommend placing all your files on a server to avoid all the headaches associated with native applications. But if you need a native application, you can create amazing applications in any environment.

+5
source

well, they are two FULLY different things.

briefly:

-HTML5 is the standard for web pages still under review (this means that it is not final and may vary ANYTIME)

-xamarin is the foundation for developing cross-platform applications. This means that this is a set of tools that will allow you (in this case) to encode C # and .net and receive a mobile application ( yes, most likely it will be a set of HTML5 with js web pages, but I never used it )

So you can say that xamarin (possibly) uses HTML5 for the final output, but that it is. has nothing to do with html5

+2
source

The link below will give more information about Monodroid (which is a Xamarin solution for developing Android applications using .NET):

http://monodroyd.wordpress.com/2011/12/04/introduction-to-mono-for-android/

Hope this helps!

+2
source

Source: https://habr.com/ru/post/1397970/


All Articles