| 94 | #ifdef Q_OS_ANDROID |
| 95 | |
| 96 | static void logAndroidPaths() |
| 97 | { |
| 98 | // Log storage paths for debugging |
| 99 | qDebug() << "=== Android Storage Paths ==="; |
| 100 | qDebug() << " AppDataLocation:" << QStandardPaths::writableLocation(QStandardPaths::AppDataLocation); |
| 101 | qDebug() << " DocumentsLocation:" << QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); |
| 102 | qDebug() << " DownloadLocation:" << QStandardPaths::writableLocation(QStandardPaths::DownloadLocation); |
| 103 | qDebug() << " CacheLocation:" << QStandardPaths::writableLocation(QStandardPaths::CacheLocation); |
| 104 | qDebug() << "============================="; |
| 105 | |
| 106 | // Note: On Android 13+ (API 33+), READ_EXTERNAL_STORAGE is deprecated. |
| 107 | // PDF file access requires Storage Access Framework (SAF). |
| 108 | // QFileDialog uses SAF, but content:// URI handling in Qt may have issues. |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Query Android system for dark mode setting via JNI. |