1

I wrote an app android sdk version 1.5 using it's built in emulator in eclipse. I created a database outside of eclipse populated it with data and push it to the emulator folder data/data/project name/database and could access it fine from the my app, everything was working great. My final step was to test the apk file on an actual phone. When I did that the program would not work. After looking into it I found that the database file was not being uploaded into the phone. Is there a special way to install the apk file on the actual phone to get the embedded database to work? Or can I assume that since everything worked fine on the sdk 1.5 emulator that everything will work when I upload it to the market. Thanks in advance.

4

1 回答 1

1

我相信这个问题涵盖了您正在寻找的内容:

基本上,您应该在代码中创建数据库,或者,如果必须,将其包含在 APK 的资源中或从外部来源检索它。

于 2009-12-30T02:17:42.327 回答