• Register

How to run C++ code on Android Devices?

Can you provide me a basic example to run c plus plus code on Android.
asked Mar 8, 2013 by anonymous

1 Answer

0 votes
 
Best answer
  1. Create a new project on android.
  2. Create the jni folder under the android project.
  3. Create the Android.mk file on the jni directory.
  4. Add the CPP file on your jni directory.
  5. Refresh the android project on the eclise or press F5.
  6. 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.
  7. 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

Related questions

1 answer
asked Jul 9, 2012 by anonymous
0 answers
asked Oct 19, 2012 by anonymous
0 answers
asked Oct 19, 2012 by anonymous
0 answers
asked Oct 19, 2012 by anonymous
0 answers
asked Oct 19, 2012 by anonymous
...