when to use "aapt add" for shared object files

by farrar » Sat, 17 Jul 2010 02:27:38 GMT


Sponsored Links
 hi All

I have the following so file from a vendor that needs to be added to a
demo apk:

lib/armeabi/libLoqASRJNIWrapper.so

I was instructed to do it like this:


aapt add -v LASRDemo.apk "lib/armeabi/libLoqASRJNIWrapper.so"


This will package the so file within the apk, but the directory
structure is not preserved:

$ unzip -l LASRDemo_signed.apk

 Length      Date    Time    Name
---------  ---------- -----   ----
      980  2010-07-16 10:19   META-INF/MANIFEST.MF
     1101  2010-07-16 10:19   META-INF/MYALIAS.SF
      937  2010-07-16 10:19   META-INF/MYALIAS.RSA
      195  2010-07-13 16:47   res/drawable/icon.png
      740  2010-07-13 16:47   res/layout/creatingro.xml
      760  2010-07-13 16:47   res/layout/error.xml
      744  2010-07-13 16:47   res/layout/loading.xml
     3376  2010-07-13 16:47   res/layout/main.xml
      592  2010-07-13 16:47   res/layout/my_spinner_style.xml
      740  2010-07-13 16:47   res/layout/recognizing.xml
     1888  2010-07-13 16:47   AndroidManifest.xml
     2756  2010-07-13 16:47   resources.arsc
   136032  2010-07-13 16:47   classes.dex
    48238  2010-07-13 15:11   loquendo/asr/demo/
MyCommandManager.java.ori
  2686392  2010-07-13 16:13   libLoqASRJNIWrapper.so



I need to carry over the "lib/armeabi" part as well. First off, is
this the correct approach for add a 3rd party .so file, and if so, can
I force it to preserve the dir structure? If I'm barking up the wrong
tree, what is a better way to handle this?

thanks
farrar


--



Other Threads

1. I want to get the status of running apps,how to do?

On android system.I want to get the status of running apps,how to do?

ex. running at foreground or background!

-- 
Best Regards!

--

2. Rectangular box around link

Hi,

In android-sdk emulator, we have a default browser. Suppose I opened any
site in
that browser. Whenever I click on any link in browser webpage, I can see a
rectangular
box around that link. Could anyone tell me how that is implemented ?


Any suggestions will be appreciated.


Thanks,
Vivek

-- 

3. configuring same resource file for many languages

4. US Taxes: Does Google send a 1099 tax form?

5. org.apache.commons.io.FileUtils

6. Dynamic views removed when switching to landscape

7. Where to host my Open Source app?