Android Room Generic DAO
问题 Good day Stack, i'm working on an Android project that uses Android's Room 1.0.0 Alpha 5, the main issue that i'm facing is that every time i need to call one of the DAO from room i need to do something like this: Activity.java: ... AppDatabase db = Room.databaseBuilder(context, AppDatabase.class, "Storage").build(); Table1 table = new Table1(); table.setId(1); table.setName("Hello"); new AccessDB().execute(1); /* Generic AccessDB needed */ private class AccessDB extends AsyncTask<Integer