Answer the question
In order to leave comments, you need to log in
Is it possible to write applications for android in C ++ with the same success as in Java?
If you are puzzled by writing mobile applications for android, would you advise choosing C ++?
Will it be as comfortable in this particular area? Is it easy to compile for android?
And if you choose specifically for mobile development for android between Java and C ++, which is more convenient?
Answer the question
In order to leave comments, you need to log in
C++ programmer with over 10 years of experience. For android I write in Java, although I don’t know Java. It seemed to me more efficient to learn Java than to write C++ for android.
Programs for android are written not because of convenience, but because of the presence of a bunch of ready-made solutions and because of greater productivity and (in some cases) because of the presence of a ready-made program on these sites. In any case, the interaction with the Google system and services goes through Java (Either the sish program pulls JNI, or the java program uses sish libs)
No, it all depends on the specific task.
If performance is important when calculating in separate parts of the application - use the NDK - it's all called through JNI. In any other case, it will be much easier to operate with various goodies from the SDK through Java than from C ++ (and java will still be an intermediary there).
The SDK has everything you need to interact with the user and the device, and the implementation of the same functionality in the NDK is very long and inconvenient. Although for such cases there is Qt
I can say from our experience that we used Qt + JNI, and it turned out to be somewhat hemorrhoids,
starting with debugging problems, it is not clear how to debug CMake projects, problems when analyzing native crashes.
In addition, C ++ for android is non-native, and anyway, one way or another, system calls have to be made through JNI, and you can’t imagine such a gem.
There is generally such a thing as Android NDK where applications are written in C ++, but it is used mainly for writing games or critical code sections ....
Libraries for Android are mainly written in C ++. They say that there are templates for ready-made games in Java and you can shove C ++, but I can’t check the info
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question