在android中使用外部数据库 [英] use External database in android

查看:163
本文介绍了在android中使用外部数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Sqlite Browser创建了数据库AddressBookMaster.db,并且还在提到的数据库中创建了表AddressBook。但是现在的问题是,我想在应用程序中使用此.db文件,因此该数据库文件应放在哪里以及如何在应用程序中获取?

I have created database AddressBookMaster.db using Sqlite Browser and also create table AddressBook in mentioned database. But now problem is that I want to use this .db file in my application so where should I put this db file and how to fetch in application?

有没有示例?或对我有帮助的教程?

Is there any example or tutorial which can help to me?

推荐答案

在Android应用程序中使用自己的SQLite数据库应该完全符合您的要求。

The information contained in Using your own SQLite database in Android applications should have exactly what you are looking for.

您应该注意,虽然这并不难,但不仅仅是在应用程序之外执行的一组简单命令。

You should note that while this is not really difficult it is not just a set of trivial commands that would be done outside of your application.

这篇关于在android中使用外部数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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