如何.db文件附加与另一.apk文件的Andr​​oid [英] How to attach .db file with another .apk android

查看:189
本文介绍了如何.db文件附加与另一.apk文件的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提出的字典,我有这么多的数据来加载。我想我创建了一个项目,该项目第一次加载数据库中的字典中的字,我用这个.db文件在我的第二个项目,这是字典的项目之后。

i am making dictionary and i have so much data to load. I want that i create a project which first load the dictionary words in database and the after i use this .db file in my 2nd project which is dictionary project.

但我不知道怎么去.db文件,并将其复制并粘贴到我的资产文件夹中。

But i don't know how to get the .db file and copy it and paste it into my assets folder.

推荐答案

好吧,yopu不能简单复制从一个私有存储任何文件,到另一个地方。我想你可以用不同的方式归档此,例如:

Well, yopu cant simply copy any files from one private storage, to another. I suppose you can archive this using different ways, for example:

1)复制你的 .db的文件由第一个应用程序的SD卡,并通过第二个应用程序复制回它的专用存储。

1) Copy your .db file to SD card by first app, and copy it back to private storage by the second app.

2)你可以使用的ContentProvider 分享私人数据不同的应用2之间不移动其SD卡上。

2) You can use ContentProvider to share private data between 2 different applications without moving it on SD card.

您can'not到入资产或不同的应用程序的任何其他数据文件夹直接访问。祝你好运!

You can'not get direct access to assest or any other data folder of different application. Good luck!

这篇关于如何.db文件附加与另一.apk文件的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆