I am using ListView to display a small list. I know it's on the main thread, but this is not a problem. It used to run under earlier API levels but gives a problem under 27.
private void populateListViewFromDB() {
Cursor cursor = myDb.getAllLogRows();
// Allow activity to...