#How does one go about making a Android app in purely C++?
29 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
you can not. every android application has atleast a bit of java or kotlin to initialize and load the c++ shared library
unless you use some kind of framework which abstracts all away (which there are not many) , you need to use java or kotlin
another approach is using some rendering library, as if you were making a game. but for an application that is not supposed to be a game it's just going to look weird
yeah you can't avoid the Java
you need the NDK
there is this library that makes it a bit less painful
uh i didnt know about this
you can use C/C++ in Android apps
there is a bit of Java at initialization like you said
i see. i was hoping to avoid Java, but I am capable of programming in it, so i will if i must
you just need for the initialization really, and if you want to make some native gui too
im unsure, can you do gui with this in c?
altho there are other languages that abstract over this and don't require Java
web frameworks 
you have access to opengl so I guess
I suppose this is good for turning really low end android devices into small computers like the raspberry pi
so yeah Kotlin is your best shot
(Java was my first language, I didn't enjoy it)
It is actually completely possible, however it does come with some limitations.
Say you want to create an C++ executable for Android ARM64, you use Clang to cross compile your C++ program, with target set to Android AArch64. When you have your executable, push it to /data/local/tmp and then give the file the required permission so that you can execute it. Then just
adb shell
cd /data/local/tmp
./myExecutable
that is what i did to update my code without recompiling the apk
or not like that but something similar
It's a pretty common technique used when you want to test some new code/feature or call some android api function without having to deal with the android bloat. Then when we have our small C++ executable working, we create the proper android project