解决方法
[…]As an alternative to creating the database,structure,and data programmatically,you can distribute a pre-populated database with your application. To distribute a predefined database,include the database file in the application’s AIR package.
Like all files that are included in an AIR package,a bundled database file is installed in the application directory (the directory represented by the File.applicationDirectory property). However,files in that directory are read-only. Use the file from the AIR package as a “template” database. The first time a user runs the application,copy the original database file into the user’s application storage directory (or another location),and use that database within the application.
那么,你的问题的答案:
can you ship an empty database as part of the distributed app?
是是的!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。