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

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -