8000 java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase · Issue #44 · androrm/androrm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase #44
Open
@equatorapps

Description

@equatorapps

I have a project with multiple activities each using fragments. I initialize Androrm from an Activity early in my application flow, and everything seems fine when working with the app from the start.

However I get the following error sometimes if the tablet has been idle for some time and is resumed: "java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase"

This comes from an Activity later in the flow (not the activity that initialized Androrm), but of course the tablet resumes to the last Activity it knows about. I read somewhere what in Android 4.x or later SQL connections are automatically closed now. Are there any suggestions to resolve this crash?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0