Android - ListView not being updated after adding to SQLite database unless app is restarted
- 阅读更多 关于 Android - ListView not being updated after adding to SQLite database unless app is restarted
问题 I am currently trying to populate a ListView by querying a SQLite database which feeds the adapter, which I can update by adding an entry. However, the ListView doesn't get updated unless I restart the app. Here is my data source code: public class DataSource { // Database fields private SQLiteDatabase database; private SQLHelper dbHelper; private String[] allColumns = null; public DataSource(Context context) { dbHelper = new SQLHelper(context); } public void open() throws SQLException {