use of com.litesuits.orm.db.assit.QueryBuilder in project Meizhi by drakeet.
the class MainActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ButterKnife.bind(this);
mMeizhiList = new ArrayList<>();
QueryBuilder query = new QueryBuilder(Meizhi.class);
query.appendOrderDescBy("publishedAt");
query.limit(0, 10);
mMeizhiList.addAll(App.sDb.query(query));
setupRecyclerView();
setupUmeng();
AlarmManagers.register(this);
}
Aggregations