diff --git a/src/personmanager.cpp b/src/personmanager.cpp --- a/src/personmanager.cpp +++ b/src/personmanager.cpp @@ -297,7 +297,12 @@ if (!s_instance) { QString path = databasePath; if (path.isEmpty()) { - path = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/kpeople/"); +#ifdef Q_OS_ANDROID + const QStandardPaths::StandardLocation location = QStandardPaths::AppDataLocation; +#else + const QStandardPaths::StandardLocation location = QStandardPaths::GenericDataLocation; +#endif + path = QStandardPaths::writableLocation(location) + QStringLiteral("/kpeople/"); QDir().mkpath(path); path += QLatin1String("persondb");