Where are my assets being installed to?
I utilize an assets folder in my new app. I have two files in the folder. When I install my app on the emulator, I cannot access my assets, and furthermore I cannot see them on the emulator filesystem.
Extracted my apk and confirmed the assets folder exists:
$ ls -ltr assets/
total 16
-rw-rw-r--. 1 brad brad 1050 2010-05-20 00:33 schema-DashDB.sql
-rw-rw-r--. 1 brad brad 9216 2010-05-20 00:33 dash.db
On the emulator, no assets folder:
# pwd
/data/data/com.gtosoft.dash
# ls -l
drwxr-xr-x system system 2010-05-20 00:46 lib
#
I just want to package a pre-built database with my app and then open it to obtain data when needed.
Just tried it on my Moto Droid, unable to access/open the DB, just like the emulator:
DBFile=/data/data/com.gtosoft.dash/assets/dash.db
Building the DB on the fly from a schema file is out of the question because its such a slow process (about 5-10 statements per second is all I get for throughput).