I want to create a game for Android and I need to choose between SDK and NDK. Mobile phones have limited hardware and I want to avoid slowdown, but Java is slow and uses too much memory.
Are NDK apps faster and more efficient than SDK apps?
Java uses a garbage collector, all objects are allocated on heap, I cannot allocate an object inside another object (without a pointer), and a simple class that is used as a struct inherits the Object class.
Will my NDK program be converted into Java bytecode? Will the compiler ignore my delete calls, add garbage collector, add the Object class and transfer all of my objects to heap?
I’ll attempt to clear up some things: