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 7062333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:34:52+00:00 2026-05-28T04:34:52+00:00

This is a followup to About the NativeActivity in Android 2.2/NDK-r5。 The example AndroidManifest.xml

  • 0

This is a followup to About the NativeActivity in Android 2.2/NDK-r5。

The example AndroidManifest.xml with the NativeActivity documentation and (android_ndk)/samples/native-activity/AndroidManifest.xml in both R6 and R6b include

<!-- This is the platform API where NativeActivity was introduced. -->
<uses-sdk android:minSdkVersion="8" />

Attempting to build with APP_PLATFORM := android-8 in Appliction.mk fails horribly because (android_ndk)/platforms/android-8/arch-arm/usr/include/android is nearly empty.

Despite this being a very silly idea, I tried to build a library with APP_PLATFORM := android-9 in Application.mk and build a .apk with target=android-8 in default.properties. To my surprise, it built. Not to my surprise, it didn’t run.

It seems unlikely, but is there some way to make this work on Android 2.2?

I have filed a bug report with Google since it is most likely a documentation error, but I thought I would raise the issue here too.

  • 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-28T04:34:53+00:00Added an answer on May 28, 2026 at 4:34 am

    NativeActivity was introduced in Android 2.3. The sample in the documentation has at least two errors: minSdkVersion should be 9 and android:hasCode should be true.

    So NO, you cannot make it working on Android 2.2.

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

Sidebar

Related Questions

[ Note: This is a followup to the question about running an Android service
This is a followup to my earlier question about deciding if a hand is
This is a followup to my question about programmatically adding wordpress categories based on
This is a followup to my question about programmatically adding wordpress categories based on
This question is a followup to a previous question I had about discovering unused
This is a followup question to what I had asked about Contents of plist
This is a follow up question to a previous question I asked about calculating
Follow up to this question about GNU make : I've got a directory, flac
This is a followup from here . I am trying to reload a pdf
This is a followup of a previous question I had. I got the very

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.