java - Check for previous and next entry in SQLITE -


i have android application uses sqlite database. app has next , previous button view entries in database. need check whether or not next or previous entry exists way can disable button if 1 not exist.

run query ids of each record in table , cache this. know if there next or previous entries. click button, , app primary key lookup based on cached data.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -