本文介绍了Android的 - 不能在pre-国产数据库查找表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图做一个程序,将采取我已经取得了SQLite数据库(称为os.sqlite),并能够读/写数据库。我跟着从也有类似的问题,虽然我的从未实际工作,而他做到了。我顺着他的code一点点,这不仅让我的应用程序开始崩溃。我只是简单地发表评论,但我是新来的,所以没有足够的声誉。

I noticed this guy had a similar issue, although mine has never actually worked, whereas his did. I followed his code a little bit, and that only made my app start to crash. I would simply just comment, but I'm new here, so not enough reputation.

推荐答案

我接着雅各布·艾哈迈德和中提琴给我的方向!有效!我有一个适配器类和之前SQLiteOpenHelper的迭代器,但我想也许是与具有助手被嵌套类可能已作出事情变得更加困难。实际上,我不知道那是什么,我做了错事,但code我在艾哈迈德的link似乎奇妙的工作,因为我的表是能够在应用程序中进行打印。谢谢你,雅各布·艾哈迈德。我所提供的链接到code,它为我工作为别人有我的问题。

I followed the directions given to me by Yaqub Ahmad and viola! It worked! I had an iteration of an Adapter class and an SQLiteOpenHelper before, but I think maybe something to do with having the Helper be a nested class may have made things more difficult. I'm actually not sure what it was that I had done wrong, but the code I got at Ahmad's link seemed to work wonderfully, as my table is able to print in the application. Thank you, Yaqub Ahmad. I have provided the link to the code that worked for me for anyone else having my problem.

这篇关于Android的 - 不能在pre-国产数据库查找表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 14:52