A
A
Andrey_Epifantsev2020-02-19 08:28:27
Android
Andrey_Epifantsev, 2020-02-19 08:28:27

Starting Android Developer: Qt/C++ or Kotlin?

I am a C++ programmer. I write desktop cross-platform GUI applications, mainly using Qt and Qt Quick. I want to write a small mobile application for Android.
You can try to do as recommended in the official documentation: in Android Studio, in the Kotlin language.
And it seems like there is an opportunity in C ++ and even using Qt.
Pros of Kotlin:

  • it is the native language for android - all platform features from it should be easily accessible
  • an application written in Kotlin should be available on all Android devices without recompilation

Cons of Kotlin:
  • You need to study it, spend time on it.
  • At first, I will write inefficiently, constantly stepping on a rake and looking for answers on the forums and in the documentation.

Pros of Qt/C++:
  • I know this language and this library well, I can write fast and create efficient code.
  • Cross-platform - if I ever want to support another platform, like Apple, I don't have to rewrite the entire application.

Cons of Qt/C++:
  • Perhaps not all features of the Android platform are available from C++. Well, or maybe many features are available in some complicated and inconvenient way.
  • Worst cross-platform: Android devices can run on different processors. They will require recompilation of the application.
  • Perhaps the situation with support is worse: it is more difficult to find answers to questions when problems arise.

Perhaps I do not know about some other significant advantages and disadvantages of these languages ​​that may affect the choice.
Please tell me what is better to choose?

Addendum: forgot about Qt licensing. On the desktop, you can make a closed Qt application without buying a paid license for the LGPL. To do this, it is enough to use Qt in the form of dynamically linking libraries. Is this possible on Android? Or do I need to buy a paid license?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2020-02-19
@402d

https://developer.android.com/training/articles/pe...
write business logic in your favorite c++
and master it to a minimum in conjunction with kotlin or pure java.
You can look at annotation preprocessors like https://jakewharton.github.io/butterknife/
and fig pioneers will be able to restore your code to source ;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question