The Android sdk has an example Notepad app that holds notes in a database. One thing I noticed was missing was reordering items, is there a simple way that this could be added? How would the ordering be set in the database?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The idea is that
ListViewdoesn’t reorder the underlying data. Instead the data presents itself in the correct order. So if you’re using SQLite using aORDER BYclause in yourSELECTwould be the way to go. When you add something refresh the underlying data to refresh your list.