Please, how can I get the latest in the android database? I am using Sugar ORM library to abstract the whole db operation, but I cannot figure out how to get the oldest record on the db.
Get a list of all objects from the database
Take the one with the "maximum" date
I'm not familiar with Sugar ORM, so I don't know how to do this with this particular library, other than its very encoding. The SQL query for this would be pretty simple.