是否有可能数据库文件复制到SD卡?有可能、数据库文件、SD

由网友(ヘξ鈊海☆ぜ)分享简介:我有我的Andr​​oid手机的数据库,我需要得到的信息到SD卡上。 I have a database on my Android phone, and I need to get the information onto an SD card. 是否有可能在数据库文件到SD卡保存在一个可读的状态呢?我一直没能找...

我有我的Andr​​oid手机的数据库,我需要得到的信息到SD卡上。

I have a database on my Android phone, and I need to get the information onto an SD card.

是否有可能在数据库文件到SD卡保存在一个可读的状态呢?我一直没能找到有关如何做到这一点的任何信息。

Is it possible to save the database file onto the SD card in a readable state? I haven't been able to find any information on how to do this.

某些源$ C ​​$ c表示数据库文件复制到SD卡将是理想的。

Some source code that copies the database file to an SD card would be ideal.

推荐答案

数据库文件就像任何其他的文件,如果你犯了一个二进制文件复制它的工作。

The database file is just like any other file, if you make a binary file copy it will work.

Java已经没有内置的文件复制方法,所以你可以使用这样的:

Java has no built in file copy method, so you can use this:

Standard简洁的方式来复制文件中的Java?

只是不要忘记添加您的清单允许写入SD卡: 权限写入SD卡

Just don't forget to add your manifest permission to write to the SD card: Permission to write to the SD card

阅读全文

相关推荐

最新文章