Develop for multiple platforms using C# and Xamarin Studio

Asked

Viewed 5,859 times

15

To not have to learn various technologies to develop for the various mobile platforms, wanted to use only C#.

However I have some doubts, namely:

  1. Xamarin Studio is free?

  2. With the same code, the generated application runs on the three platforms?

  3. I own a Mac. If I have a Mac project that I run on all three platforms, can I open this project on a Windows PC? Can I edit normally, test on Android and it ensures that the changes will work on iOS? The project will continue to work when it opens again on your Mac?

  4. Regarding the graphical interface. How are they made? Only one for all platforms?

  • 1

    The #1 is very easy: https://store.xamarin.com/

  • it is expensive eim...

  • Do you know C++? If you know, using Qt you can develop for all these platforms. I also programmed C#, but I migrated to Qt when I decided to start learning mobile. The transition was very simple. Sorry if this is not an option.

  • would be a good option, I like c++, and always wanted to deepen, but have little content for mobile.

  • @Does Warlock have anything I need to improve on to fully answer what you asked? Let me know that I will try to improve.

3 answers

13


  1. Yes, absolutely free. But you need a license from some Microsoft IDE, probably a Visual Studio, even Community.

  2. Essentially it is possible to use the same code for all three platforms, but it doesn’t mean that you don’t need to take specific care to ensure that everything is good. Nor does it mean that it is the best UI solution.

    The part of backend can be the same and run where you want, does not depend on the platform frontend. Of course you need to do it in a way that doesn’t cause problems for any platform, but that’s easy, communication on all platforms can be done the same way and that’s what matters. Of course if the frontend of each platform, for some reason not following the same architecture, will have problems, but the normal is to be the same.

  3. I have no experience, but it’s not that simple. Multi-platform brings a natural impedance. See C# Mobile Development Needs Mac?

  4. With Xamarin Forms it is possible to make a code for all platforms.

    The experience may not be the best possible in all of them, especially now that the product is not yet fully mature. But there are always ways to minimize the problems that may arise. But if you decide not to use it you will have to make a code for each platform following each one’s guidelines. It can get better but it takes a lot more work to do and mainly maintain. More details: Xamarin.Forms Portable or Xamarin.Forms Shared

But some things can change now that the .NET is open source with mit license and the Mono will go through a great revolution. See more about how Microsoft is committed to other platforms.

Everything has changed since the answer here. See Which . NET should I use? and What are the differences of ". NET"? and yet What should I understand when they say ". NET"?.

6

1-It is not free.
2-With the same code, you can run several platforms, taking out the code that is necessary to communicate with the API of each platform.
3-I didn’t test, I can’t give you a certainty.
4-For each platform you have to make a graphical interface for each one. An Activity(Android), a View(IOS) and a Xaml for windows phone.

2

At the company I work for, we use Xamarin. Even if you are going to develop in C# it is necessary that you have a certain knowledge in Java (most examples are in java) and Android Java development. For what Xamarin does is "encapsulate" the java codes. You will go to the same classes that there are in Java android, for example Toast.Maketext(); It is a very good IDE, has its problems, as for example, in the last update I did, it did not redenrize the axml so I had to downgrade in sdk Tools.

  • Jcsaint, would you mind skyping me or emailing me to exchange ideas about Xamarin? [email protected] - Joaquim.M1 (skype). I have some questions about large projects.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.