如何SQLite数据库添加到我的项目? [英] how to add Sqlite database to my project?

查看:136
本文介绍了如何SQLite数据库添加到我的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作(测验)的Andr​​oid项目。现在,我想用数据库。我有很多教程操纵SQ-精简版数据库操作。但我的问题出在哪里,我应该如何在应用程序中添加.db文件。在Eclipse IDE的包浏览器,在哪个文件夹组我需要添加.db文件?以及如何在我的SQLite数据库添加问题我的项目。

I am working on (Quiz)Android Project. Now, I am trying to work with database. I got many tutorials for manipulating Sq-lite database operations. But my problem is where and how should I add the .db file in to the application. In package explorer of Eclipse IDE, under which folder group I need to add the .db file? and how to add question in my Sqlite database to my project.

在此先感谢。

推荐答案

创建数据库。

创建数据库链接..

请参阅下面的测验演示它会创建一些想法给你。

See the following quiz demos it will create some idea to you.

<一个href="http://mobile.tutsplus.com/tutorials/android/android-ui-workshop-build-an-interactive-quiz-app/"相对=nofollow> demo1的

演示2

Demo3

要参考以下为您的要求。

To refer the following for your requirement..

竞猜1个链接

测验2链接

更换为按钮,而不是上面的链接单选按钮...

replace to button instead of radio button above link...

问答三个环节。 ..

这篇关于如何SQLite数据库添加到我的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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