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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:42:18+00:00 2026-06-09T07:42:18+00:00

Android can use .so file through JNI. The native function in C/C++ is bound

  • 0

Android can use .so file through JNI. The native function in C/C++ is bound to a Java function.

I want to use other developers’ .so file (I don’t have the source code). I know the interface of the native function, but I have faced some difficulties. It seems that the .so file is hard coded to bind for a certain package name.

Is there any way for me to use other developers’ .so file?

If not, is it possible to decompile the .so file and make it work?

  • 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-09T07:42:20+00:00Added an answer on June 9, 2026 at 7:42 am

    You could create a package with the name that the shared object expects, in which you have a wrapper class whose only purpose is to load the library and provide the native methods to clients using this class.

    Import that package into your own activity’s package (or wherever you want to use it) and call the native methods through the wrapper class.

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

Sidebar

Related Questions

I have an android.graphics.bitmap and an android.net.Uri both of these I can use anyway
How can I use a different Android sdk and resolution simulator with testing use
How can we use Web services in Android Applications?
I can not use content://sms? Works on all Android devices? I'm using SmsManager but
R class on android has it's limitations. You can't use the resources dynamically for
The documentation ( http://developer.android.com/guide/topics/manifest/manifest-element.html#uid ) only states I can't use raw strings and the
im wondering if we can develop our android app in any computer we use
Can the TabHost in Android 2.3 be fullscreen ? Usually, I use requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
I use asmack to connect with google talk (Android). I can get name, email.
I have an android application which uses jni and I'm trying to automate build

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.