It depends.  For the vast majority of apps, no.  There can be performance
critical code that you need to have native, in which case you would write
your app using Java and call out to the native code in JNI.

On Wed, May 18, 2011 at 3:10 PM, Roger Podacter <[email protected]>wrote:

> Is coding in Java and the virtual machine environment really losing
> that much efficiency over a pure native c++ OS? I've always been
> curious about this.
>
> On May 18, 12:38 pm, Dianne Hackborn <[email protected]> wrote:
> > Having to maintain two parallel APIs that try to keep fidelity with each
> > other would greatly slow down the development of the platform.
> >
> > Not to mention that basically all of the core parts of the platform run
> > under Dalvik, so that is the true environment for Android.  This includes
> > the window manager, activity manager, account manager, clipboard, and on
> and
> > on and on in addition to all of the client-side frameworks.
> >
> > If you need to use any of these features, you can use JNI from your
> native
> > code to access them.
> >
> >
> >
> >
> >
> > On Wed, May 18, 2011 at 11:42 AM, jjwang <[email protected]> wrote:
> > > First of all, I know the android ndk, but it's not a full functional C/
> > > C++ sdk for android platform.
> >
> > > For example It doesn't support the standard ui components
> >
> > > Can you guys tell me why and what am I supposed to do to access
> > > standard ui controls in pure C/C++ codes.
> >
> > > Thanks a lot   :-)
> >
> > > jjwang
> >
> > > --
> > > 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
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > [email protected]
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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