0
How to convert an coded c program to an app
Why can't posibble that we write some x programme in our phone and we create its like app How it is possible
1 Answer
+ 9
C codes are native to the device they are supposed to run on. This means that these require to be compiled as per the architecture of the device you are going to use them on. Thus, running code compiled in a Windows, Linux or Mac desktop with a different CPU than the one on your device is not possible without an emulator of some kind.
To create an app that may use native code, you can use NDK and JNI. These allow use of C/C++ code that may be linked to the any activity of the application, where you can call these functions from the native files.
Visit this link for more information:
https://developer.android.com/studio/projects/add-native-code