--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/YrNYWM4z6KEJ.
Your phone must be rooted and you need to run your file from the directory you pushed it to.
Here go my steps:
1. write a C program testEXE.c and build into an executable file "testEXE".
// testEXE.c
#include <stdio.h>
int main() {
printf("Hello. Test succeeded.");
}
2. On PC, with Android SDK installed, run "cmd" (Command Prompt)
> cd C:\android-sdk\platform-tools (my sdk folder is c:\android-sdk)
> adb push testEXE /sdcard/
> adb shell
$ cd /data/local
$ mkdir tmp
$ cat /sdcard/testEXE > /data/local/tmp/testEXE
$ cd /data/local/tmp
$ chmod 751 testEXE
3. then, on the android phone, tap to launch the "Android Terminal Emulator"
$ cd /data/local/tmp
$ ./testEXE
You should be able to see it working now.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-ndk.
For more options, visit https://groups.google.com/groups/opt_out.