【问题标题】:link an interface with the database in android将接口与android中的数据库链接
【发布时间】:2013-02-15 12:23:39
【问题描述】:

我想创建一个包含列和行的 android 应用程序,用户可以从中选择项目并创建订单。我已经用 5 列在 SQLiteBrowser 中创建了自己的数据库。 我在android项目的“资产”中添加了这个数据库。我还创建了一个界面。问题是,如何将所有这些信息与我的界面联系起来?例如,我如何将有关 Spinner 中地址的信息和有关项目的信息从数据库中添加到 tablelayout 中? 我是android开发的新手,对不起,如果我不能正确解释的话。 任何建议都会很有帮助。

【问题讨论】:

标签: android user-interface android-sqlite android-spinner android-tablelayout


【解决方案1】:

我个人使用的是 DBAdapter。您只需要指定您的数据库名称和路径。如果要填充某些视图,则需要创建适配器类。欣赏:http://www.2shared.com/document/Ik6fFuth/DBAdapter.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-01-18
    • 2011-07-23
    • 1970-01-01
    • 1970-01-01
    • 2016-09-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多