While studying about the android software stack . I got to know that the base is linux terminal . So I got one idea doubt if we can run the C program .
Yes of course we can execute the C program in android mobile using the app Terminal IDE ,which lets us to access the Linux terminal in our android mobile.
Here are the steps to download, install the terminal IDE in your mobile and executing C program.
First Step :
Install the Terminal IDE app in your android mobile phone, which lets you to access your linux terminal in android mobile.
Third Step : Now press back and select the Terminal IDE option to access your terminal IDE.Now navigate to the system folder and then to src folder, where this app is having the permissions to execute the file. To navigate to that directory type the command cd system/src . And also create the directory code where we are going to store our code using the command mkdir code
Fourth Step : Its now time to create the C program file, here i am creating the file test.c file and placing the code for "Hello World" program .Before that navigate to code folder using cd code .
Commands to create and write the code are cat>test.c.
Sixth Step : We have to install the terminal GCC for compiling and executing the C Program. To install the terminal GCC type the command install_gcc .
Thank you for sharing run C/C++ program on Android
ReplyDeleteThanks my guy.....u a geek
ReplyDeleteIn my phone don't have an src directory in system.. What can i do ? Whether i have to create it? or not?
ReplyDelete