根据地址:http://blog.csdn.net/tianfeng701/article/details/7606623
来完成的代码
截图:
其中还报错了:
01-11 12:34:23.384: E/AndroidRuntime(323): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.sqlite/com.example.sqlite.ResultActivity}; have you declared this activity in your AndroidManifest.xml?
最后发现是:AndroidManifest.xml文件中没增加:
<activity android:name=".ResultActivity" android:theme="@android:style/Theme.Dialog"/>
代码下载地址:http://download.csdn.net/detail/u012242610/6838211
关于这里的数据库文件
怎么打开,用什么打开请去下载我写的文档:
http://download.csdn.net/detail/u012242610/6839829