I am trying to run a C code on an Android tablet from my computer which has Ubuntu 12.04. But when I run the application on android the tablet is not getting detected.
Please help me as to what to do.
You could do this with adb.
adb is run from the terminal, and allows you to run shell commands on the phone. You could write C code which executes adb via system().
It might be easier to just write a shell script.