基于游标和列表控件的AndroidSQLite数据库数据读取和显示  

Reading and Showing of Android SQLite Database Based on Cursor and ListView

在线阅读下载全文

作  者:刘玮玮[1] 贺智明[2] 

机构地区:[1]福建农业职业技术学院信息技术系,福州350001 [2]江西理工大学信息工程学院,赣州341000

出  处:《现代计算机》2014年第20期38-40,48,共4页Modern Computer

摘  要:Android除可使用SQLite Database实现数据存储,还可使用数据查询返回的游标对象Cursor中的方法简化数据库操作,并通过Simple Cursor Adapter类来建立Cursor和显示查询结果的列表控件的适配关系。通过实现基于Android的城市导游程序,阐述使用游标读取Android SQLite数据库的数据并显示到列表控件的方法,该方法比传统的Android数据库处理方式更加方便高效,且便于封装。Besides using SQLite Database to implement data storage, Android can also use methods of cursor which returned by data query to simplify the operation of database, and build the adapted relationship of cursor and List View which shows the results of query. Presents the cursor technique of reading the Android SQLite data and showing them on the List View with an implemented Android city guide program,it's more convenient and more highly efficient contrasted with the traditional Android database handling way, and it's convenient for pack-aging.

关 键 词:ANDROID SQLITE数据库 游标 列表控件 

分 类 号:TP311.13[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象