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. Cinemator 0.3

Kabar gembira nih, bagi yg hobby nonton atau yang nanti malam mau ngapel :D

Cinemator atau Cinema Agregator, adalah sebuah client app jadwal film
yang ditayangkan di bioskop (21cineplex.com). Aplikasi ini khusus
dibuat untuk android.

Fitur-fiturnya :
- menampilkan film yg saat ini sedang ditayangkan di bioskop, beserta
sinopsis dan poster yang menarik perhatian !
- menampilkan daftar theater yang ada di jakarta, beserta :
 + alamat
 + no telp
 + harga normal
 + harga nomad
- menampilkan jadwal film yang sedang diputar di sebuah theater
- menampilkan jadwal midnight yang akan diputar di sebuah theater
- bisa di jalankan di android 1.5 hingga 2.1


Nah jadi cocok banget nih dipake untuk nyusun acara nanti malam :D
Berhubung fresh from the oven, mohon bantuannya untuk feedbacknya yah
:D


Cheers,

Abangkis

-- 
"Indonesian Android Community [id-android]" 

2. Android number formatting question

How do I format a floating point number to 2 decimal places in
Android? Thanks for any assistance.

-- 

3. How to disable ListView scrolling?

4. Restlet librairies use in Android project

5. VOOT : SALOME (Dewasa) Jangan Dilakukan Kecuali Sudah Paham

6. Is this is limitation of Eclair [SDK 2.1] in Contact App?

7. Is it possible to publish two versions for the same app simultaneously?