Hi,
I wish to use an sqlite db on a tablet's external sd card.
The tablet is running Android Build version 6 with API Level (19 KiKat).
I tried ExternalStorage.zip. I had to edit the manifest to a minimum of 19 to get it to install.
It now installs and runs, but when I push the Pick Folder button it doesn't do anything. I get no errors.
I also tried Erels's test code:
However this wouldn't compile as it seems to need a library. I don't understand how to use it. I have looked at the tutorials on permissions, but that didn't help.
Thanks in advance for any help.
I wish to use an sqlite db on a tablet's external sd card.
The tablet is running Android Build version 6 with API Level (19 KiKat).
I tried ExternalStorage.zip. I had to edit the manifest to a minimum of 19 to get it to install.
It now installs and runs, but when I push the Pick Folder button it doesn't do anything. I get no errors.
I also tried Erels's test code:
B4X:
Dim extFolder As ExternalFile = Storage.FindFile(Storage.Root, folder)
Log("Folder found: " & extFolder.IsInitialized)
If extFolder.IsInitialized Then
Dim extFile As ExternalFile = Storage.FindFile(extFolder, filename)
Log("File found: " & extFile.IsInitialized)
If extFile.IsInitialized Then
Dim rp As RuntimePermissions
Dim out As OutputStream = File.OpenOutput(rp.GetSafeDirDefaultExternal(""), filename, False)
File.Copy2(Storage.OpenInputStream(extFile), out)
out.Close
End If
End If
However this wouldn't compile as it seems to need a library. I don't understand how to use it. I have looked at the tutorials on permissions, but that didn't help.
Thanks in advance for any help.