Running C++ program on Android OS

Hi,

Is someone experienced in compiling native C or C++ to run under Android OS?

Is this a straightforward task or are there many problems to be expected.

The program currently is a windows dll. Is a dll approach also possible under Android?

Thanks for your help
PjotterRAsked:
Who is Participating?
 
alexey_gusevCommented:
as far as I understand it (but never tried, I admit) - you can use your C code from Java under Android (have a look at the link in my prev post for more details as it contains links to the relevant stuff).

so you could create small wrapper around your C-app and call existing code from that wrapper
0
 
alexey_gusevCommented:
I can't say I'm experienced to run C++ under Android, but from what I read and heard (like http://blogs.zdnet.com/Burnette/?p=1284) it is by far not straightforward.

Android is totally different from Windows, so I guess it would be much easier to rewrite your app completely
0
 
samwood09Commented:
have to write it in java :/
0
 
PjotterRAuthor Commented:
Java is not an option I'm afraid. The large program is totally written in C ansi.

Is you conclusion that it is not possible to run C applications under Android?
0
 
PjotterRAuthor Commented:
yes I have seen the link and it looks ok to me. You can call a C library from JAVA using the JNI.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.