Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6336715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:06:41+00:00 2026-05-24T19:06:41+00:00

Just reviewing the NDK docs, http://developer.android.com/sdk/ndk/index.html , first para states If you write native

  • 0

Just reviewing the NDK docs, http://developer.android.com/sdk/ndk/index.html, first para states

If you write native code, your applications are still packaged into an .apk file and they still run inside of a virtual machine on the device.

which contradicts the first bullet point for Revision 6,

Adds support for the x86 ABI, which allows you to generate machine code that runs on compatible x86-based Android devices.

Now will my native compile to machine code or byte code for the virtual machine?

–EDIT—

Perhaps I have read that wrong, the application of course runs in the virtual machine while still calling down into explicit, custom, native (machine) code. Sound about right?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:06:42+00:00Added an answer on May 24, 2026 at 7:06 pm

    Your edit is correct. You still need to create standard activities in java, and use the jni to call native code that you have compiled, a lot like calling some of the APIs which aren’t run in the dalvikVM (such as sqlite). This native code is architecture dependant of course.

    AFAIK, this does change with native activity (android 2.3+), but as only a small percentage of phones are running 2.3+, I haven’t investigated it much.

    Edit: Think of it this way, with the NDK, your making a library, which you can then use in your app you make using the SDK. With a little know how though, you can put most of your applications smarts into that library, making your app just some glue code around the library.

    As a side note though, you can use the NDK to make fully native programs for android, just like you can with any cross-compiler (main method and all). However, unless you’re planning on releasing an android phone in the future, or targeting only users with root, you won’t be doing this because normal users cannot execute a native program without installing it as an app, for fairly obvious (security) reasons.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was just reviewing some old code and found the following (inside foo.asp): Const
I was just reviewing one of my client's applications which uses some old outdated
I'm code reviewing a change one of my co-workers just did, and he added
I was just putting some thought into different languages (as I'm reviewing for final
Just looking for the first step basic solution here that keeps the honest people
I just got done reviewing the Notepad tutorial and looking at how they do
I was just reviewing the answers to different questions to learn more. I saw
I just updated my Flex Builder 3 SDK to 3.6. I want to take
I am just reviewing some code I wrote to communicate with the serial port
I'm just reviewing some of my old code (have some spare time), and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.