Doubtz Q&A
Login
Register
How to run C++ code on Android Devices?
Can you provide me a basic example to run c plus plus code on Android.
android
asked
Mar 8, 2013
by
anonymous
Please
log in
or
register
to answer this question.
1 Answer
0
votes
Best answer
Create a new project on android.
Create the jni folder under the android project.
Create the Android.mk file on the jni directory.
Add the CPP file on your jni directory.
Refresh the android project on the eclise or press F5.
Select the CPP file on left side of the project explore function Right Click on the then press the NEW-> OTHER
convert your project with the c++ compatible , so your project will contain the cpp libraries for your projects.
Click on your project with right button and select Properties or press Alt+Enter.
For More detailed example: please visit to my blog:
http://cpp-android.blogspot.in/2013/03/cpp-android.html
answered
Mar 8, 2013
by
Mahesh Nawale
selected
Mar 8, 2013
by
Ashwini Kumar
Please
log in
or
register
to add a comment.
Related questions
1
answer
Why acceptance test carried out on devices?
asked
Jul 9, 2012
by
anonymous
0
answers
how to ask a girl out on a date
asked
Oct 19, 2012
by
anonymous
0
answers
how to meet people on facebook
asked
Oct 19, 2012
by
anonymous
0
answers
how to make friends on facebook
asked
Oct 19, 2012
by
anonymous
0
answers
how to get a girl to like you on facebook
asked
Oct 19, 2012
by
anonymous
...