我在我的项目中使用Android兼容性库。我已经设置了ListFragment,如DevGuide ()中所描述的,并使用了一个简单的CursorLoader CursorLoader made be ()。所以在我的应用程序中,我有TitlesFragment,DetailsFragment,FragmentLayoutActivity,DetailsLayoutActivity。在ListFragment的onActivityCreated中打开数据库,并在ListFrag
作为学习安卓系统的一部分,我正在关注但是,如果以快速的方式启动/停止应用程序(我通过单击应用程序的图标手动启动应用程序,并通过按back关闭它),我注意到DB没有关闭&生成了以下错误:
08-23 18:11:55.637: WARN/SQLiteCompiledSql(10784): Releasing statement in a finalizer. Please ensure that you explicitly call close() on yo
E/SQLiteOpenHelper(15963): Couldn't open iviewnews.db for writing (will try read-only):E/SQLiteOpenHelper(15963): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper