开发者

How to display sqlite contents

开发者 https://www.devze.com 2023-03-10 02:09 出处:网络
I\'m not that exp开发者_如何学运维erienced so I may have missed something obvious. What I am trying to achieve is a search feature for the database.

I'm not that exp开发者_如何学运维erienced so I may have missed something obvious. What I am trying to achieve is a search feature for the database.

The two methods I'm thinking of are either an edittext and a listview and everytime the edittext changed a query is run and the listview is updated. Or populating the listview with all the data and then filtering it.

If I went for the second option I'm guessing it is less demanding on memory plus could I hide all the contents while the edittext is empty?

Any examples of implementation would be helpful too.

Thanks


A good place to start is the Android Dev Guide under the Data Storage section. Have a look at the Searchable Dictionary sample there.

0

精彩评论

暂无评论...
验证码 换一张
取 消