Hello Community!,
First of all, I would like to mention that I am completely new to Android development. While I know the Java language fairly well, I have not done any android development yet and therefore have little understanding of it.
I have sifted through the forums and source code, but I seem to be unable to find the answers to the following questions:
- For the Android cocos2d-x build, where is the build process started? What file actually STARTS the initiation/running of the cocos2dx application on the android phone?
- Is any of the Cocos2dx c++ code actually run and compiled for the android system through the NDK, or is all of the C++ code simply wrapped into java classes that then run on the android?
- I want to use a udp networking library called eNet in my game. I am wondering if directly utilizing the library through the NDK will be compatible with all android systems, and whether or not I will be able to package the app into an .APK for the Google Play Store.
- IF I cannot use eNet with it’s c++ code, then I’ll have to port some parts or all of it into Java code. How would I call the eNet Java code from within my application considering cocos2d-x is written using c++, and I only want to call the Java code if it is running on the Android?
If you have any links that might enlighten me, it’d be highly appreciated. I am quite lost and perhaps some of the confusion comes from my lack of understanding the NDK/NJI.
Thank you!