You should use runtime permissions and your code should include something like this:
B4X:
Dim rp As RuntimePermissions 'need runtime permissions library. This line should preferably in Starter service
File.Copy(File.DirAssets,pdfname,rp.GetSafeDirDefaultExternal(""),pdfname)
Also: Your target SDK in your manifest should be: 26 not 28
You should use runtime permissions and your code should include something like this:
B4X:
Dim rp As RuntimePermissions 'need runtime permissions library. This line should preferably in Starter service
File.Copy(File.DirAssets,pdfname,rp.GetSafeDirDefaultExternal(""),pdfname)
Also: Your target SDK in your manifest should be: 26 not 28
It does not matter anymore. The file names are internally converted to lower case. So, it is not a problem if the asset files are in uppercase.
The runtime permissions tutorial (https://www.b4x.com/android/forum/threads/runtime-permissions-android-6-0-permissions.67689/#content) provides all the information you need to be able to write the code yourself. If there are other things that aren't clear to you, then search the forum for the specific issue you are having & if you still can't figure it out then ask - but don't expect other forum members to write the code for you. You won't learn anything if you just copy & past code that others have written.
The runtime permissions tutorial (https://www.b4x.com/android/forum/threads/runtime-permissions-android-6-0-permissions.67689/#content) provides all the information you need to be able to write the code yourself. If there are other things that aren't clear to you, then search the forum for the specific issue you are having & if you still can't figure it out then ask - but don't expect other forum members to write the code for you. You won't learn anything if you just copy & past code that others have written.
If File.Exists(rp.GetSafeDirDefaultExternal(""),"fav.db") = False Then
File.Copy(File.DirAssets,"fav.db",rp.GetSafeDirDefaultExternal(""),"fav.db")
End If
or better yet
B4X:
dim Carpeta as String
Carpeta=rp.GetSafeDirDefaultExternal("")
If File.Exists(Carpeta,"fav.db") = False Then
File.Copy(File.DirAssets,"fav.db",Carpeta,"fav.db")
End If
If File.Exists(rp.GetSafeDirDefaultExternal(""),"fav.db") = False Then
File.Copy(File.DirAssets,"fav.db",rp.GetSafeDirDefaultExternal(""),"fav.db")
End If
or better yet
B4X:
dim Carpeta as String
Carpeta=rp.GetSafeDirDefaultExternal("")
If File.Exists(Carpeta,"fav.db") = False Then
File.Copy(File.DirAssets,"fav.db",Carpeta,"fav.db")
End If