我有一个数据库助手对象。离开Activity时关闭它很重要,所以我这样做了。但是,在返回Activity时,我收到一条关于查询已关闭的数据库的警告。查询确实有效,但仍然存在明显的错误。我对AndroidActivity生命周期的理解不深,但我假设我需要在onResume()中重新打开数据库。这不对吗?这是onResume():@OverrideprotectedvoidonResume(){super.onResume();dbHelper.setInteger(playerID);dbHelper.openDataBase();ourCursor=dbHelper.getPlayer