B
B
beduin012017-07-26 17:23:18
Android
beduin01, 2017-07-26 17:23:18

How convenient is it to write in C# for Android?

We need to write a mobile application. How good is C# for this? Will the app work equally well on iOS and Android? Are there many pitfalls? And what about the libraries?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vyacheslav Zolotov, 2017-07-27
@beduin01

In general, developing on Xamarin is convenient.
1. You can open a book on Android development in java and copy-paste examples from there with minimal modifications, taking into account the language and xamarin
2. The C# language itself is more than suitable, it is developing very actively. There are a lot of sharp libraries, both paid and free, both in the package repository and on GitHub in the form of source codes. Xamarin allows you to hook native libs to java if something is missing.
3. There is a "native" Xamarin (Xamarin.Android, Xamarin.iOs, etc.) - this is a wrapper over native APIs, the UI is made in the usual way for native developers. There is Xamarin.Forms - there you can make a single UI using XAML. The tool is more than working, but you need to get used to it, know the cons, know the features of the platforms for which the application is being developed, know that Xamarin Forms can not be used for all applications, know how to make a fast UI. XF - generally ready for use.
4. Yes, the size of the application package if you make everything large by default, there are a lot of articles on optimizing the size of applications, but the size of the application will be larger than that of native ones.
5. The main problem with Xamarin Forms is not bugs, size or anything else. These are the wrong expectations that are placed on him. He has his own niche.

R
Roman, 2017-07-27
@yarosroman

I tried, as a result, the size of an empty application is about 20 megabytes, there is a problem with native calls. As a result, I settled on Kotlin and Android Studio.

A
Andrey Trunin, 2017-07-26
@LamerX

It seems like such applications need the Xamarin framework (I myself was somehow interested in this, but already about 2 months ago)

Z
zugo, 2017-07-27
@zugo

Google for the keyword Xamarin.
In short, to build a UI there is the Xamarin.Forms library, which allows you to make cross-platform applications a la "write once - run everywhere". So, everyone who used it complained about bugs, dampness and curvature. Hence the conclusion that it is not necessary to use it.
Other than that, there's an option to use per-platform native UI bindings, which seems to be a working method. That is, you will have to move the business logic to an external library, and make your own UI for each mobile platform.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question