Skip to content
This repository was archived by the owner on May 3, 2025. It is now read-only.
This repository was archived by the owner on May 3, 2025. It is now read-only.

Crash on startup #8

@argilo

Description

@argilo

Two reports of the following crash have come in. I'm not sure why the database file couldn't be written. Maybe it's a lack of space. But the exception should be caught so the app doesn't crash.

java.lang.RuntimeException: Unable to create application net.argilo.busfollower.BusFollowerApplication: android.database.sqlite.SQLiteException: Couldn't write database file.
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4394)
at android.app.ActivityThread.access$1300(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5039)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.database.sqlite.SQLiteException: Couldn't write database file.
at net.argilo.busfollower.ocdata.DatabaseHelper.getReadableDatabase(DatabaseHelper.java:52)
at net.argilo.busfollower.BusFollowerApplication.onCreate(BusFollowerApplication.java:32)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391)
... 10 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions