Question on building factory installed app with native Lib and external data on Cupcake

by efu » Mon, 23 Nov 2009 15:22:28 GMT


Sponsored Links
 I am building an application that will be pre-installed on a cupcake
image. The application comes with a native library. My .apk file
contains the native library inside the /libs/armeabi directory and
the .apk has been tested fine when installed as a downloadable app.

I placed the .apk in the out/target/product/dream-open/system/app
folder, rebuild the image and load it on the Dream device.
Questions:

1) I found out the my native lib was not copied to the /data/data/<app-
path>/lib directory. This would normally happen if my app is installed
as a downloadable app. Why?

2) What is the way to include my native lib as part of the /system/lib
and installed on the device?

3) I also have a large set of data that needs to be read/write by the
app in runtime. Right now these files are copied out of the .apk when
the app is run the first time. Ideally the data files can be installed
in the /data/data/<app-path> directory as part of the system package.
Can this be done? I noticed that the com.android.alarmclock app has
its database files pre-installed, how is it done?

Thanks!

-- 



Other Threads

1. Emulator on Windows7 can't connect to internet

Similar issues are occasionally reported in Ubuntu and Vista. You
might try running the emulator with a manually set DNS server:

emulator -dns-server 111.222.333.444






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

2. The file extension and read permission issue

I did it. The same problem.


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

3. Blur on Magic

4. Mundu on android

5. Emulator on Windows7 can't connect to internet

6. The file extension and read permission issue Hi, I am in the problem about reading dat a from some new file extensions, the problem is fis.read() g ets -1 from the first run

7. UK Ordnance Survey OpenSpace Maps with Google Gears