Skip to content Skip to sidebar Skip to footer

How To Create An Apk File For A Binary Executable File?

I have written a GUI application in C++, built it for ARM processor and verified, that this application is running on Android in the Andronix emulated environment. Now is the quest

Solution 1:

You can create and Android NDK Project and create an APK with your c++ executable.

Official help is here Create a new project with C/C++ support

Solution 2:

Andronix allows you to run Linux and and Linux executables in an environment separate to the native one - but if you want to run a linux executable on an android, you can do so with much simpler tools, like adb. For example, adb shell ./sdcard/my_app.pe would theoretically work.

However, APKs in android are basically zip files that include metadata, and the compiled code as a dex file. You would typically use a platform like Android Studio to generate them from java code.

If you really want to implement things from scratch you probably need to compile your application into a jar file, and then convert it to the dex file using a tool like d2j.

Post a Comment for "How To Create An Apk File For A Binary Executable File?"