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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.