Buen día colegas,
siguiendo ejemplos tengo una app funcionando, con datos locales en db sqlite. Ahora necesito copiar la db a la pc de alguna forma, pero no encuentro la carpeta ni el archivo.
B4X:
'copy the default DB
Log("File.DirAssets: "&File.DirAssets) 'File.DirAssets: AssetsDir
Log("xui:DefaultFolder: "&xui.DefaultFolder) 'xui:DefaultFolder: /data/user/0/b4a.Prueba_1/files
If File.Exists(xui.DefaultFolder, "prueba.db") = False Then
File.Copy(File.DirAssets, "prueba.db", xui.DefaultFolder, "pesca.db")
End If
Hola, si quieres acceder a archivos desde tu ordenador, debes añadir la libreria RuntimePermissions y grabar tu db en rp.GetSafeDirDefaultExternal("") (Puedes poner un nombre de carpeta entre las comillas y la creará )
1. Edit: In B4XPages the permission result event signature is: Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean) 2. Important to read: https://www.b4x.com/android/forum/threads/android-jar-targetsdkversion-minsdkversion.87610/#content If the targetSdkVersion is...
There are several versioned components that affect the compilation process and the runtime behavior of our apps. The purpose of this tutorial is to explain the differences between them and help you choose which version to use. Each Android version is mapped to an api level. You can see this...