I have used the NDK to program some of my app in native C/C++, and I
can tell you it is not pretty.  It is almost like two separate
programs (Java part and C part) with a very expensive and awkward
interface between them.  Most of you user interface will certainly
have to be in Java.  You can't access any of your Java variables from
the C code.  You can't pass arrays by pointers as parameters.  I use
it mostly for some high performance signal processing tasks.  But the
Java code also runs surprisingly fast.  So don't go to C unless you
are absolutely sure you need to.  The article referenced by Isuru says
it well.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to