How can get top of records by GreenDAO?
You can specify a limit using standard QueryBuilder:
List<YourEntity> entities = yourDao.queryBuilder().limit(1).list();
You can specify a limit using standard QueryBuilder:
List<YourEntity> entities = yourDao.queryBuilder().limit(1).list();