In Java application, how to load native library which depends on the third shared library

by Jiang » Wed, 26 Aug 2009 13:47:00 GMT


Sponsored Links
 Hello, guys.

I created a jni library which depends the third shared library, I must copy the 
third shared library to /system/lib, otherwise, Java application can't load jni 
library. But you know, on G1 with official OS image, /system/lib is readonly. I 
tried to call System.setProperty to set java.library.path to the location 
stored the thired shared library before load jni library, but the issue still 
exists.

Is there any one konw how to solve this issue? Thanks a lot.

BR,
- Jiang



      ___________________________________________________________ 
  
 http://card.mail.cn.yahoo.com/ 
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. gears and android 2.X

Hi. We have a web application that uses google gears to store local
copy of remote data. Now, we can't test our application on android
simulator 2.0 or 2.1, because it does not support google gears, nor it
is installable. I know that google is abandoning gears and migrate it
to html 5. Is there any guide to migrate old gears code to new html5
version? Thanks a lot for your time.

2. Layout issues for multiple screen sizes and API versions

I am currently trying to make my app compliant with all screen sizes /
api levels.

I have this mostly working, however there is 1 issue i cannot resolve:

Layouts in the "layout-hdpi" folder are used by and any phone on 1.5
(API level 3).  - Which i dont want, i want API level 3 phones to use
the "layout" folder.  So to resolve this I added "-v4" onto the folder
also, this works, the folder is no longer used by 1.5 phones.

However, now the folder is also not used on API Level 6 phones, for
example the droid.  The droid only picks up the folder if i name the
folder: "layout-hdpi-v6".  (Also if i put "-v3" on a folder, the
layout folder is not used by API level 4 phones)

My understanding is that the -v<api level> qualifer allows you to
exclude phones on an API level that is too low, so -v4 should mean
that the folder will be used by all phones on API level 4 and above.
I am finding a folder is only used for that specific API level.

Has anybody else ran into this same issue? And does anybody know of
any possible solutions?

I hope that makes sense.

Marc



My current manifest file has the following:

<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="7"/>

and my resources folder list is:

drawable
drawable-hdpi
drawable-ldpi
layout
layout-hdpi-v4
layout-ldpi-v4

3. How to run my app only when screen saver runs

4. 鈥淐onnection reset by peer鈥? exception when connecting android g1 to rs232 adapter

5. How to disable user interaction arising from a long press to an EditText

6. How to feed MediaPlayer with AMR chunks properly

7. android, How develop a vedio call programe?