开发者

how to access Pre populated database directly from apk?

I have pre populated database of around 25 MB, which needs to be copied from assets folder to data/data/packagename/ to access database from code.

My issue is when I shift apk file from phone memory to sd card, it gives following information:

Total storage used: 27.54Mb
Application: 892Kb
Data: 26.67Mb

And If I run application, database is copied from apk file(from assets folder) to specified path in internal phone memory, and database is so large that device get slower. and ultimately there is duplication of database, one is in p开发者_如何学编程hone memory and one is in apk file which is on sdcard.

So my question is Can I access pre populated database directly from apk file without copying to any other place? Please help me.

NOTE: I have split database into 26 parts as assets folder does not take file >1.5 MB. so I needed to split entire database.


Can I access pre populated database directly from apk file without copying to any other place?

No, sorry.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜