Don't remember this being an issue previously, not heard of this before. I have tested a 3 screen project in companion, with SimpleSqlite loaded in each screen (not doing anything) and I see no crashing.
Are you closing/unloading databases before switching screens ?
Do you need multiple real screens, you could probably use virtual screens for your app
Why are you using V2 of SimpleSQLite? Use the latest version V4 which includes the listFixer method along with other improvements.
You appear to have got yourself into a muddle. You only have one bible database, so why does the user have to pick a file from Shared Directories ? Just import it to the main database from assets and work from there, or as I did in my previous example, download it to your ASD and set the filepath there.
Different real screens should be considered as different apps, you need to ensure you close the database on one screen before loading and opening the database on another. This I why I suggested virtual screens.
I'm encountering a problem with the return values from what appears to be the sql.run function. It seems that if the query finds matching records, the function correctly returns the data. But if no records are found, it returns the string "SQL command completed" instead of an empty list.
This makes the data handling logic more complicated, as I have to check the result type before processing it.
What is the recommended way to handle this scenario? I was expecting an empty list for a query with no results.
Hello everyone,
I wanted to download the “simplesqlite” extension, but the link on the website for uk.co.metricrat.simplesqliteV4.12.aix doesn't seem to be working.
I tried on my smartphone, on a PC... same result.
Are other people having this problem? If the error persists, are there any alternative sites from which I can download this extension?
Please excuse my language errors as I don't speak English and am using an automatic translator.
Thank you in advance for your replies.
Utilizando la extensión SimpleSQLite no me funciona correctamente la .exportación (ExportDatabase ) / importación (ImportDatabase) hacia/ desde /storage/emulated/0/Download/alumbron.db
A veces exporta pero a continuación no importa.
Si pudiera ver un ejemplo funcional. Pienso que pudiera ser algo de permisos tal vez.
El asunto es que necesito implementar una salva y restaura de la BD.
Which Android version are you testing with ?
Are you testing with companion app or compiled app?
Are you exporting the db from the default database first, then trying to import it ?
Show your relevant blocks.
Cuando le doy Exportar pone dos mensajes de error sobre permisos denegados para imágenes y videos ( cosa que no requiero en esta aplicación ) y no saca el dialogo con el File Exists. Sin embargo SÍ CREA EL FICHERO pruebaBD.bd en la ubicación solicitada.
Cuando le doy Importar el resultado del SELECT se corresponde con una base de datos asociada anteriormente a esta misma aplicación antes de modificarla como se muestra ahora.
Es decir, a pesar de que creó el fichero con la presunta salva de la BD, no importa nada en la importación donde debería haber sobrescrito la base de datos anterior.
En resumen, lo que necesito es cómo salvar mi base de datos actual en una carpeta accesible para poder copiarla a otro medio o abrirla con un browser de SQLite y cómo restaurar mi base de datos desde una salva en esa misma carpeta, por ejemplo.
Gracias
Suggest you use the DBName block after EXPORTing, then you can work directly with the database in the Download directory, instead of IMPORTing into the default database every time.
El problema del error que me da es por el el scope que tenía puesto el bloque File en shared , ahora lo puse en Legacy y salen las notificaciones pero despues de la exportación sigue diciendo qye el fichero no existe en /storage/emulated/0/Download/pruebaBD.db a pesar de que por fuera con Mis Archivos veo el fichero perfectamente. Parece que exporta pero File1.FileExist me sigue diciendo que no existe.