Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

100% Native C Application on Android?

Is there anyway I could write 100% native C code for Android? I know there are ways to write some C code inside Java code, but I don't know any Java and I hate Java anyway.

Is there anyway I could write pure C code that will run under Android?

like image 204
killercode Avatar asked Mar 25 '11 15:03

killercode


2 Answers

Yes, there is support for writing completely native activities. You can check out the native-activity sample application.

I would not recommend this path, though, as in my experience applications that are heavy in NDK code are very difficult to debug. I would rate the Android native debugging experience as lacking.

Edit - one caveat is that you will still be doing plently of Java--just through the JNI.

like image 146
Matthew Willis Avatar answered Oct 24 '22 06:10

Matthew Willis


There is, as of Android 2.3: NativeActivity. But you don't get access to any of the niceties of Android's Java libraries; you're on your own in the wild west. This is really intended for people writing high-performance games.

like image 24
Yoni Samlan Avatar answered Oct 24 '22 08:10

Yoni Samlan