I am trying to include some pdf files in the /Files/ assets folder with my app then open them from my app.
So I discovered that I cannot have an external pdf viewer load a file from file.DirAssets, so I am trying to copy the files first.
I saved a file: "My_Test_PDF_File.pdf" to my /files/ folder, but I cannot see if when using this code. what on earth could I be doing wrong?
I always get a NOT Found error???
So I discovered that I cannot have an external pdf viewer load a file from file.DirAssets, so I am trying to copy the files first.
I saved a file: "My_Test_PDF_File.pdf" to my /files/ folder, but I cannot see if when using this code. what on earth could I be doing wrong?
B4X:
Dim FLname As String
FLname = "My_Test_PDF_File.pdf"
FLname=FLname.ToLowerCase
If File.Exists(File.DirAssets,FLname) Then
ToastMessageShow("Found",True)
Else
ToastMessageShow("NOT Found: " & FLname,True)
End If
File.Copy(File.DirAssets,FLname,File.DirInternalCache,FLname)
I always get a NOT Found error???