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. Inserting Images in Text Field along with the Text

Hi all,

Hi i am new to Android,

I want to add Image to Text field, at the same time i want to write
text

under that image( want to describe about the image )  in the same text
field. And the image

should be provided with ZOOOM_IN and ZOOM_OUT options, for the user to
view.

Please can anyone help me with example...............

Thanking you in advance.


Regards,
AndroidGuy

--~--~---------~--~----~------------~-------~--~----~

2. read csv file

Hello,

I want to read csv file from res. Can some one tell me how can i read
it ?
--~--~---------~--~----~------------~-------~--~----~

3. Read CID of SD card (MMC)

4. Related to Home Key

5. opencore packet video error in android -"Video track fell behind"

6. How to debug Java apps without any IDE?

7. Will a notification still work if the device once shut down.