找回密码
 立即注册
TheDataBase数据库myListView | android开发 2022-11-07 36 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
androiddb连接实例,连接数据库的源码演示程序,和Java连接数据库是相同的,在Android中相同也是需要与数据库结合,获得DataBase里的数据,newSimpleCursorAdapter并将myCursor传入,显示数据的字段为todo_text,将myListView增加OnItemClickListener,将myCursor移到所点击的值,获得字段todo_text的值,增加数据到数据库,重新整理myListView,修复数据,删去数据等。本资料共包括以下附件:

(The source code demo program of androiddb connection instance and database is the same as that of Java connection database. In Android, it also needs to be combined with the database to obtain the data in the DataBase. The newSimpleCursorAdapter and myCursor are passed in. The field displaying the data is todo_ Text, add OnItemClickListener to myListView, move myCursor to the selected value, and get the field todo_ Text, add data to the database, reorganize myListView, repair data, delete data, etc. This document includes the following annexes:)

[下载]11503333785.rar




上一篇:Android alertDialog警告框实例运用
下一篇:animation Android动画效果实例