-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 22/06/12 05:23, Pavel Ivanov wrote:
> And if you include your populated database into application package 
> before installation and don't see any data after installation check 
> that you open your database with an absolute path otherwise you could 
> be opening some other database file, not the one you think you're 
> opening.

Note that advice is not applicable to Android.  Android applications are
distributed as APK files which behind the scenes are just a zip file.
When your application is installed and running it is from that intact zip
file, although the contents feel as though they are local files.  SQLite
cannot open a database that is a member of a zipfile.  The application
would explicitly have to create the database on storage populating it via
SQL queries ideally.  You could also write the binary file image, but
Android is somewhat fussy about databases it didn't create as it does some
behind the scenes shenanigans with versioning and collations/locales.

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk/l7IoACgkQmOOfHg372QS8hgCfRi/ApEil2f/H5XwKPF/5Kaag
LSAAn3ZhZkUF9y2HJnOYiv/3/0gJjFvM
=tzSi
-----END PGP SIGNATURE-----
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to