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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:20:50+00:00 2026-06-01T22:20:50+00:00

from this article http://marakana.com/forums/android/examples/49.html i have seen that the application build with help of

  • 0

from this article

http://marakana.com/forums/android/examples/49.html

i have seen that the application build with help of NDK do following things

1> it compile all c code (inside jni folder) and make library which stays in libs folder

2> inside .apk package also that library stays inside lib folder

and inside java file i can load that library with following code

 static {
    System.loadLibrary("ndk_demo");
  }

Question1:
so now is there possible that instead of keeping that library as part of .apk i can install it in android system and my application load from system ?

Question2:
same way can i use some other libraries all ready installed in android like open GL, sqLite ?

  • 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-06-01T22:20:51+00:00Added an answer on June 1, 2026 at 10:20 pm

    Answer to both the questions is Yes you can.

    Q1 :
    If you want to test it you can follow this way.

    1) Compile the source code using NDK.

    2) Copy (adb push) the library in /system/lib of your android device. Run the Application.

    When you load a library it checks either from lib folder of apk file or from /system/lib folder of the system. But to copy into /system/lib, you should remount the filesystem. For this you got to have root permissions.

    Q2:

    Answer to Q1 answers ths aswell. If the library is present in /system/lib, you can call the existing libraries aswell. But there is a small problem. You cannot call the functions inside the library directly because of the naming convention to be followed for jni interface. So ultimately “you have to create your own library using the existing library“.

    Steps would be like this:

    Pull the library(adb pull)

    Write your native code which will be calling the routines of the existing library(Ex. OpenGL)

    Compile your code by linking it with the prebuilt library(See NDK documentation file. It is very clearly written how to do this. You need to mention it in Android.mk file while compiling).

    You will finally get a shared library which internally contains the existing library.

    I did the same thing for one of the existing libraries, libsqlite. If you are stuck somewhere let me know. Thanks

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

Sidebar

Related Questions

I have read from this article http://codahale.com/how-to-safely-store-a-password/ and it says using a salt isn't
I'm using code examples from this article by Rick Strahl: http://www.west-wind.com/weblog/posts/324917.aspx to make async
I'm modifying demo application from this article: http://msdn.microsoft.com/en-us/magazine/dd419663.aspx I need to update all files
In C following this article ( http://blogs.msdn.com/oldnewthing/archive/2006/12/21/1340571.aspx ), we have succesfully been able to
From this Wikipedia article: http://en.wikipedia.org/wiki/Hamiltonian_path_problem A randomized algorithm for Hamiltonian path that is fast
From this article http://msdn.microsoft.com/en-us/magazine/dd882520.aspx I wanted to create a list of selected days like
http://searchnetworking.techtarget.com/definition/time-to-live From this article, im Confused about the defanition about this subject. is there
Recently I came to know from this article - http://blogs.msdn.com/b/patrickdanino/archive/2009/11/11/custom-controls-and-ui-automation.aspx -that controls in WPF
I have found this article: http://www.zurb.com/article/221/css3-animation-will-rock-your-world on css3 animations. I am trying to create
After reading this article http://camendesign.com/code/developpeurs_sans_frontieres I have decided to follow what it says and

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.