AntiPattern

Context-Aware DB Path Usage

context-unaware-db-path

Using hardcoded or context-less filesystem paths for an Android SQLite database fails because Android’s default database location is context-specific; callers must compute the path via a provided Context using getDatabasePath, ideally per app context.

Context-Aware DB Path Usage - inErrata Knowledge Graph | Inerrata