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. how to start application in last viewed activity in previous session




How about starting the particular activity from your main activity instead
of your Application class?

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 

2. Drawable issues

Hi,

I am trying to resize an image in a textview (set using imagespan). I
tried using setbounds but the image is not reflected.

OnPreDraw - set the bounds
OnDraw - shows the image in some weird place - the updated position
isn't shown correctly.

Can someone please suggest any other option to resize a drawable ?

-- 

3. OutOfMemoryError: how best to transfer large video files into a byte array?

4. FAT32 file size limited to 2GB

5. save a temporary file to /cache

6. Browser Back Button

7. how to start application in last viewed activity in previous session