Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Native android development without any java?

I have recently became interested in android development however the biggest road block for me has been even the mere thought of using java to develop for a mobile phone. I do not have confidence in java's ability to make possible a high performance game with a consistent frame-rate and I do not want my program to stall during garbage collection. I am a C/C++ programmer primarily (I also use assembly if needed) who has programmed in java before and have from past experience found that due to the fact that I have more control over various aspects such as memory allocation I can optimize my program further and I general prefer low level programming.

I have already read questions and answers here and they suggest using the NDK, now I have looked at the NDK and it still introduces the bloat of java. Basically if I understand correctly what I would have to do is write some short java code that would call my native code. The problem with this java is still running in the background therefor consuming valuable ram which mobile phones lack of and java would still need to launch and even on my computer java takes a little bit to start-up and given the fact that I am programming for a mobile phone which I am sure has a much slower cpu it will take even longer. I have found that java and low memory footprint to be a oxymoron and do not want java running in the background idling using ram. I want this program to be accepted in the official application store which I believe is know as "google play". Given the fact that I am programing for such a resource limited device I am very surprised that java is the recommended way.

like image 587
user3462295 Avatar asked Nov 23 '14 16:11

user3462295


People also ask

Can we develop Android without Java?

The official language of Android app development is without any doubt, Java. It makes things better because it has a large number of open-source resources, as well as valuable libraries and software. It also defends against many problems in native code, such as memory leaks and incorrect pointer use.

Can we learn Android development without coding?

Yes, it's possible to develop Android Apps without programming knowledge.

Is Java only used for Android development?

Java is an object-oriented, high-level programming language developed by Sun Microsystems in 1995 and used for developing software for multiple platforms. It is supported by all the platforms like Android, OS X, Linux, and Windows.

Can I learn Android development without Web development?

The applications developed by android developers can be accessed by an android device with or without the requirement of the internet.


1 Answers

First, I believe you are worrying too much about the performance of java. You cannot avoid "java running in the background", because most of Android is implemented in Java, anyway. And the resources of smartphones are not so limited.

Now if you really can't stand java, you can use a NativeActivity: http://developer.android.com/reference/android/app/NativeActivity.html And make your game with OpenGL.

See also that question: 100% Native C Application on Android?

like image 148
Rémi Avatar answered Oct 07 '22 02:10

Rémi